Mercurial > projects > dstress
annotate run/t/template_struct_09_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 | f0259cabdf78 |
children |
rev | line source |
---|---|
1510 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Don Clugston <clugdbug@yahoo.com.au> | |
6 // @date@ 2007-04-03 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1140 | |
8 // @desc@ [Issue 1140] ICE casting tuple member to tuple struct | |
9 | |
10 module dstress.run.t.template_struct_09_A; | |
11 | |
12 struct Dog(B...){ | |
13 B values; | |
14 | |
15 static Dog!(B) create(B x) { | |
16 return *cast(Dog!(B)*)(&x[1]); | |
17 } | |
18 } | |
19 | |
20 int main(){ | |
21 auto c = Dog!(int, int).create(7, 5); | |
22 return 0; | |
23 } |