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