Mercurial > projects > dstress
view run/auto_03.d @ 70:5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
2) updated todo
author | thomask |
---|---|
date | Sat, 23 Oct 2004 22:47:47 +0000 |
parents | 3414705c41ac |
children | a33ad7189d21 |
line wrap: on
line source
// @author@ Sean Kelly <sean@f4.ca> // @date@ 2004-09-11 // @uri@ news://chtj6t$24bm$1@digitaldaemon.com // @url@ nttp://digitalmars.com/digitalmars.D.bugs:1821 module dstress.run.auto_03; int status; auto class AutoClass{ ~this(){ assert(status==0); status--; throw new Exception("error msg"); } } void test(){ assert(status==0); auto AutoClass ac = new AutoClass(); } int main(){ try{ test(); }catch{ } assert(status==-1); return 0; }