annotate run/t/tuple_02_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 daef239f37cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1222
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
1 // $HeadURL$
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
2 // $Date$
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
3 // $Author$
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
4
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
5 // @author@ Don Clugston <clugdbug@yahoo.com.au>
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
6 // @date@ 2006-11-06
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1222
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=484
1222
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
8 // @desc@ [Issue 484] New: Compiler segfault with template variadic used as a template alias.
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
9
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
10 module dstress.run.t.tuple_02_A;
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
11
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
12 int g(alias B)(){
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
13 return B * 2;
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
14 }
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
15
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
16 int f(A...)(A a){
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
17 return g!(a) + 1;
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
18 }
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
19
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
20 int main(){
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
21 if(f(4) != 9){
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
22 assert(0);
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
23 }
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
24 return 0;
f5ff36ad0c46 [Issue 484] New: Compiler segfault with template variadic used as a template alias.
thomask
parents:
diff changeset
25 }