annotate run/t/template_class_13_W.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 660f9196b52a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
753
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
1 // $HeadURL$
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
2 // $Date$
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
3 // $Author$
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
4
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
5 module dstress.run.t.template_class_13_W;
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
6
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
7 class C(creal f){
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
8 creal cf = f;
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
9 }
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
10
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
11 int main(){
920
5511f9277078 testcase review
thomask
parents: 753
diff changeset
12 const creal a = 1.2L + 2.1Li;
753
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
13 auto sa = new C!(a);
1086
7e8e5013a030 gdc-0.19 review
thomask
parents: 920
diff changeset
14 if(sa.cf != a){
7e8e5013a030 gdc-0.19 review
thomask
parents: 920
diff changeset
15 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 920
diff changeset
16 }
753
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
17
920
5511f9277078 testcase review
thomask
parents: 753
diff changeset
18 const creal b = -0.8L - 0.1Li;
753
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
19 auto sb = new C!(b);
1270
660f9196b52a partial review
thomask
parents: 1086
diff changeset
20 if(sb.cf != b){
1086
7e8e5013a030 gdc-0.19 review
thomask
parents: 920
diff changeset
21 assert(0);
7e8e5013a030 gdc-0.19 review
thomask
parents: 920
diff changeset
22 }
753
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
23
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
24 return 0;
61617b6d35af updated test cases to DMD-0.140
thomask
parents:
diff changeset
25 }