Mercurial > projects > dstress
view run/a/auto_14_A.d @ 1581:930dbd51f0cc
[Issue 1689] New: Segfaults for nested array allocation with GDC
<mariusmuja@gmail.com>
2007-11-24
http://d.puremagic.com/issues/show_bug.cgi?id=1689
author | thomask |
---|---|
date | Fri, 22 Feb 2008 07:54:39 +0000 |
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_A; bool hadDtor = false; auto 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); }