Mercurial > projects > dstress
annotate run/mixin_07.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 | 52c9e86b6486 |
children |
rev | line source |
---|---|
337 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Ben Hinkle | |
6 // @date@ 2005-03-18 | |
7 // @uri@ news:d1faqu$1pir$1@digitaldaemon.com | |
1383 | 8 // @uri@ nntp://news.digitalmars.com/digitalmars.D.announce/10 |
337 | 9 |
10 module dstress.run.mixin_07; | |
11 | |
12 template Foo(alias tail) { | |
13 int test(){ | |
14 return 1; | |
15 } | |
16 } | |
17 | |
18 struct List(V) { | |
19 mixin Foo!(tail); | |
20 V tail; | |
21 } | |
22 | |
23 int main(){ | |
24 List!(int) x; | |
25 assert(x.test()==1); | |
26 return 0; | |
27 } |