annotate run/bug_cg87_279_E.d @ 1559:ec5e144583ea

D1 -> D2 : 1/N
author thomask
date Sun, 19 Aug 2007 19:11:54 +0000
parents b8c0195059d9
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_E;
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
10
f37683b0277b foat/ifloat/cfloat: -O -inline
thomask
parents:
diff changeset
11 ifloat 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=2i;
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(-2i != 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 }