Mercurial > projects > dstress
diff run/auto_03.d @ 1559:ec5e144583ea
D1 -> D2 : 1/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:11:54 +0000 |
parents | be2b20dc0eb4 |
children |
line wrap: on
line diff
--- a/run/auto_03.d Mon Jul 23 18:47:01 2007 +0000 +++ b/run/auto_03.d Sun Aug 19 19:11:54 2007 +0000 @@ -14,14 +14,18 @@ auto class AutoClass{ ~this(){ - assert(status==0); + if(0 != status){ + assert(0); + } status--; throw new Exception("error msg"); } } void test(){ - assert(status==0); + if(0 != status){ + assert(0); + } auto AutoClass ac = new AutoClass(); }