Mercurial > projects > dstress
view run/auto_07.d @ 799:c67acdbaf88e
Sean Kelly <sean@f4.ca>
2006-01-24
news:dr5uqg$2hn7$1@digitaldaemon.com
author | thomask |
---|---|
date | Wed, 25 Jan 2006 08:03:40 +0000 |
parents | 61ec77e09b1e |
children | b8c0195059d9 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Sean Kelly <sean@f4.ca> // @date@ 2005-04-14 // @uri@ news:d3kvo3$3uf$1@digitaldaemon.com module dstress.run.auto_07; int status; auto class Parent{ } auto class Child : Parent{ this(){ assert(status==0); status=1; } ~this(){ assert(status==1); status=2; } } void test(){ auto Parent o = new Child(); assert(status==1); } int main(){ test(); if(status==2){ return 0; } assert(0); }