annotate run/bug_cg87_279_C.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 ec5e144583ea
children
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
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 736
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3363
371
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
8
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
9 module dstress.run.bug_cg87_279_C;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
10
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
11 real x;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
12
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
13 void foo(){
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
14 x = -x;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
15 }
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
16
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
17 void bar(){
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
18 return foo();
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
19 }
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
20
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
21 int main(){
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
22 x=2;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
23 bar();
1559
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1489
diff changeset
24 if(-2 != x){
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1489
diff changeset
25 assert(0);
ec5e144583ea D1 -> D2 : 1/N
thomask
parents: 1489
diff changeset
26 }
371
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
27 return 0;
736
1e6afb94ce6d updated meta data for Torture
thomask
parents: 371
diff changeset
28 }