Mercurial > projects > dstress
annotate run/bug_cg87_279_F.d @ 371:f37683b0277b
foat/ifloat/cfloat: -O -inline
Tom S <h3r3tic@remove.mat.uni.torun.pl>
2005-03-27
news:d26pug$2m4m$1@digitaldaemon.com
author | thomask |
---|---|
date | Sun, 27 Mar 2005 18:44:42 +0000 |
parents | |
children | 1e6afb94ce6d |
rev | line source |
---|---|
371 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Tom S <h3r3tic@remove.mat.uni.torun.pl> | |
6 // @date@ 2005-03-27 | |
7 // @uri@ news:d26pug$2m4m$1@digitaldaemon.com | |
8 | |
9 // __DSTRESS_DFLAGS__ -O -inline | |
10 | |
11 module dstress.run.bug_cg87_279_F; | |
12 | |
13 ireal x; | |
14 | |
15 void foo(){ | |
16 x = -x; | |
17 } | |
18 | |
19 void bar(){ | |
20 return foo(); | |
21 } | |
22 | |
23 int main(){ | |
24 x=2i; | |
25 bar(); | |
26 assert(x==-2i); | |
27 return 0; | |
28 } |