Mercurial > projects > dstress
annotate run/t/template_class_13_N.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 |
rev | line source |
---|---|
753 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.t.template_class_13_N; | |
6 | |
7 class C(cfloat f){ | |
8 auto cf = f; | |
9 } | |
10 | |
11 int main(){ | |
920 | 12 const cfloat a = 1.2f + 2.1fi; |
753 | 13 C!(a) sa = new C!(a); |
1086 | 14 if(sa.cf != a){ |
15 assert(0); | |
16 } | |
753 | 17 |
920 | 18 const cfloat b = -0.8f - 0.1fi; |
753 | 19 C!(b) sb = new C!(b); |
1270 | 20 if(sb.cf != b){ |
1086 | 21 assert(0); |
22 } | |
753 | 23 |
24 return 0; | |
25 } |