Mercurial > projects > dstress
annotate run/template_03.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 | b8c0195059d9 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
0 | 5 // @author@ Nick <Nick_member@pathlink.com> |
6 // @date@ 2004-08-05 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1278 |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1278 |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
9 |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
10 module dstress.run.template_03; |
0 | 11 |
12 template Bar(Y){ | |
13 void Bar(Y param){ | |
14 } | |
15 } | |
16 | |
17 template Foo(alias X){ | |
18 alias Bar!(typeof(X)) Foo; | |
19 } | |
20 | |
21 int main(){ | |
22 float f = 1.2f; | |
23 mixin Foo!(f); | |
24 Foo(f); | |
25 return 0; | |
26 } |