Mercurial > projects > dstress
view run/s/switch_22_D.d @ 1537:457db9394771
[Issue 1204] segfault using struct in CTFE
Don Clugston <clugdbug@yahoo.com.au>
2007-04-30
http://d.puremagic.com/issues/show_bug.cgi?id=1204
author | thomask |
---|---|
date | Mon, 07 May 2007 05:21:26 +0000 |
parents | 986983b8cf7a |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <BCS@pathlink.com> // @date@ 2006-06-16 // @uri@ news:e6umde$2ok0$2@digitaldaemon.com // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=729 module dstress.run.s.switch_22_D; int main(){ int i = 3; switch(2){ scope(failure) i--; default: } if(i != 3){ assert(0); } return 0; }