annotate compile/t/template_41_D.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
1096
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
1 // $HeadURL$
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
2 // $Date$
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
3 // $Author$
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
4
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
5 // @author@ Bruno Medeiros <daiphoenix@lycos.com>
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
6 // @date@ 2006-08-02
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1096
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=276
1096
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
8
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
9 module dstress.compile.t.template_41_D;
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
10
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
11 template T1(){
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
12 template T2() {
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
13 template T3(int i){
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
14 const int T3 = i + 1;
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
15 }
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
16 }
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
17 }
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
18
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
19 alias T1!().T2!().T3 inc;
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
20
daa894e9fb12 [Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff changeset
21 static assert(inc!(2) == 3);