Mercurial > projects > dstress
view run/a/auto_14_B.d @ 1592:276327753cc7
Fix typo in run/a/asm_lea_03.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 28 Aug 2008 10:12:53 +0200 |
parents | 902d2c168029 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Sean Kelly <sean@f4.ca> // @date@ 2006-01-24 // @uri@ news:dr5uqg$2hn7$1@digitaldaemon.com // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=704 module dstress.run.a.auto_14_B; bool hadDtor = false; class MyClass{ this(){ throw new Exception("dummy"); } ~this(){ hadDtor = true; throw new Exception("should never throw"); } } int main(){ try{ auto MyClass c; c = new MyClass(); }catch{ if(!hadDtor){ return 0; }else{ assert(0); } } assert(0); }