annotate run/bug_cg87_2393_C.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
371
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
1 // $HeadURL$
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
2 // $Date$
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
3 // $Author$
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
4
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
5 // @author@ Tom S <h3r3tic@remove.mat.uni.torun.pl>
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
6 // @date@ 2005-03-27
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
7 // @uri@ news:d26pug$2m4m$1@digitaldaemon.com
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
8
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
9 // __DSTRESS_DFLAGS__ -O -inline
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
10
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
11 module dstress.run.bug_cg87_2393_C;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
12
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
13 cdouble x;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
14
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
15 void foo(){
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
16 x = -x;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
17 }
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
18
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
19 void bar(){
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
20 return foo();
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
21 }
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
22
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
23 int main(){
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
24 x=2;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
25 bar();
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
26 assert(x==-2);
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
27 return 0;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
28 }