Mercurial > projects > dstress
diff run/auto_04.d @ 1559:ec5e144583ea
D1 -> D2 : 1/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:11:54 +0000 |
parents | 6e4063f99377 |
children |
line wrap: on
line diff
--- a/run/auto_04.d Mon Jul 23 18:47:01 2007 +0000 +++ b/run/auto_04.d Sun Aug 19 19:11:54 2007 +0000 @@ -13,11 +13,15 @@ auto class AutoClass{ this(){ - assert(status==0); + if(0 != status){ + assert(0); + } status+=2; } ~this(){ - assert(status==2); + if(2 != status){ + assert(0); + } status--; throw new Exception("error msg"); } @@ -29,11 +33,11 @@ } int main(){ - assert(status==0); + if(0 != status){ assert(0); } try{ check(); }catch{ - assert(status==1); + if(1 != status){ assert(0); } status-=5; }