Mercurial > projects > dstress
view run/class_initialization_02.d @ 1330:f3f715978184
Georg Wrede <georg@iki.fi>
2007-01-07
mail:45A120F5.1050108@iki.fi
author | thomask |
---|---|
date | Sat, 13 Jan 2007 10:33:49 +0000 |
parents | 6c00d3fd09ec |
children | 52c9e86b6486 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ k2 <k2_member@pathlink.com> // @date@ 2004-11-30 // @uri@ news:cohgrc$n3v$1@digitaldaemon.com // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2379 module dstress.run.class_initialization_02; class Parent{ int s; this(){ } } class Child : Parent { this(){ } int a; int b; int c; int d; } int main(){ Child a = new Child(); assert(a.s == 0); assert(a.a == 0); assert(a.b == 0); assert(a.c == 0); assert(a.d == 0); return 0; }