Mercurial > projects > dstress
annotate run/unittest_05.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | 1e6afb94ce6d |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
736 | 5 // __DSTRESS_TORTURE_BLOCK__ -release |
434 | 6 // __DSTRESS_DFLAGS__ -unittest |
89 | 7 |
434 | 8 module dstress.run.unittest_05; |
374 | 9 |
434 | 10 int status; |
89 | 11 |
434 | 12 union E{ |
13 int i; | |
89 | 14 unittest{ |
434 | 15 status++; |
89 | 16 } |
17 } | |
434 | 18 |
19 int main(){ | |
20 assert(status==1); | |
21 return 0; | |
22 } |