173
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ k2 <k2_member@pathlink.com>
|
|
6 // @date@ 2004-11-30
|
|
7 // @uri@ news:cohgrc$n3v$1@digitaldaemon.com
|
1384
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2379
|
173
|
9
|
|
10 module dstress.run.class_initialization_01;
|
|
11
|
|
12 class Parent{
|
|
13 int s;
|
|
14 this(){
|
|
15 }
|
|
16 }
|
|
17
|
|
18
|
|
19 class Child : Parent {
|
|
20 int a;
|
|
21 int b;
|
|
22 int c;
|
|
23 int d;
|
|
24 }
|
|
25
|
|
26 int main(){
|
|
27 Child a = new Child();
|
|
28
|
|
29 assert(a.s == 0);
|
|
30 assert(a.a == 0);
|
|
31 assert(a.b == 0);
|
|
32 assert(a.c == 0);
|
|
33 assert(a.d == 0);
|
|
34
|
|
35 return 0;
|
|
36 }
|