661
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ zwang <nehzgnaw@gmail.com>
|
|
6 // @date@ 2005-09-09
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4963
|
661
|
8
|
|
9 module dstress.run.i.inline_14_C;
|
|
10
|
|
11 int a = 0;
|
|
12 int b = 0;
|
|
13
|
|
14 class A{
|
1091
|
15 void f(){
|
|
16 a++;
|
|
17 }
|
661
|
18 }
|
|
19
|
|
20 class B : A{
|
1091
|
21 void f(){
|
|
22 b++;
|
|
23 super.f();
|
|
24 }
|
661
|
25 }
|
|
26
|
|
27 int main(){
|
1091
|
28 (new B).f();
|
|
29 assert(a==1);
|
|
30 assert(b==1);
|
|
31 return 0;
|
736
|
32 }
|