Mercurial > projects > dstress
annotate run/mixin_05.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 | d3a3e0c251d8 |
children |
rev | line source |
---|---|
299 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Ilya Zaitseff <sark7@mail333.com> | |
6 // @date@ 2005-02-22 | |
7 // @uri@ news:opsmlwgpo1aaezs2@robingood | |
1384 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3034 |
299 | 9 |
10 module dstress.run.mixin_05; | |
11 | |
12 template T(){ | |
13 int x; | |
14 } | |
15 | |
16 struct S{ | |
17 mixin T; | |
18 } | |
19 | |
20 const S s = { x:2 }; | |
21 | |
22 int main(){ | |
23 assert(s.x==2); | |
24 return 0; | |
25 } |