annotate run/b/bug_cod1_2433_A.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
526
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
1 // $HeadURL$
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
2 // $Date$
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
3 // $Author$
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
4
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
5 // @author@ Burton Radons <burton-radons@smocky.com>
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
6 // @date@ 2005-05-12
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1086
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3933
526
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
8
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
9 module dstress.run.b.bug_cod1_2433_A;
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
10
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
11 ifloat test(){
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
12 return 1.0fi;
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
13 }
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
14
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
15 int main(){
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
16 cfloat c = 0.0f+0.0fi;
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
17 c += test;
1086
7e8e5013a030 gdc-0.19 review
thomask
parents: 526
diff changeset
18 if(c.re != 0.0f){
7e8e5013a030 gdc-0.19 review
thomask
parents: 526
diff changeset
19 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 526
diff changeset
20 }
7e8e5013a030 gdc-0.19 review
thomask
parents: 526
diff changeset
21 if(c.im != 1.0f){
7e8e5013a030 gdc-0.19 review
thomask
parents: 526
diff changeset
22 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 526
diff changeset
23 }
526
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
24 return 0;
724f0f0afc01 ..\ztc\cod1.c 2433
thomask
parents:
diff changeset
25 }