Mercurial > projects > dstress
annotate compile/t/template_41_B.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 |
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_B; |
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 class C{ |
daa894e9fb12
[Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff
changeset
|
12 template T1(){ |
daa894e9fb12
[Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it
thomask
parents:
diff
changeset
|
13 template T2(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 T2 = 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 C.T1!().T2 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); |