Mercurial > projects > dstress
view run/destructor_03.d @ 1513:45c339264b57
[Issue 1125] Segfault using tuple in asm code, when size not specified
Don Clugston <clugdbug@yahoo.com.au>
2007-04-11
http://d.puremagic.com/issues/show_bug.cgi?id=1125
author | thomask |
---|---|
date | Mon, 23 Apr 2007 18:09:16 +0000 |
parents | 6e4063f99377 |
children | 7b7967dd4203 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Ilya Zaitseff <sark7@mail333.com> // @date@ 2004-08-06 // @uri@ news:opscahl7ddaaezs2@ilya.tec.amursk.ru // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1284 module dstress.run.destructor_03; int status; class MyClass{ this(){ status++; } ~this(){ status--; throw new Exception("E2"); } } int main(){ try{ auto MyClass m = new MyClass(); assert(status == 1); delete m; }catch(Exception e){ assert(status == 0); status--; } assert( status == -1 ); return 0; }