Mercurial > projects > dstress
annotate compile/t/typeof_15_C.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 |
---|---|
1231
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
2 // $Date$ |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
3 // $Author$ |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
4 |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
5 // @author@ Nazo Humei <lovesyao@hotmail.com> |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
6 // @date@ 2006-11-19 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1231
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=572 |
1231
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 572] New: syntax error when using template instantiation with typeof |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
9 |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
10 module dstress.compile.t.typeof_15_C; |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
11 |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
12 class Test{ |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
13 static template T(){ |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
14 const int T = 2; |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
15 } |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
16 } |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
17 |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
18 Test o; |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
19 alias typeof(o) t; |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
20 |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
21 static assert(t.T!() == 2); |
5c578f77e01b
[Issue 572] New: syntax error when using template instantiation with typeof
thomask
parents:
diff
changeset
|
22 |