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