Mercurial > projects > dstress
annotate run/bug_todt_194_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 | b8c0195059d9 |
children |
rev | line source |
---|---|
265 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ zwang <nehzgnaw@gmail.com> | |
6 // @date@ 2005-02-03 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2850 |
265 | 8 |
266 | 9 module dstress.run.bug_todt_194_B; |
265 | 10 |
266 | 11 int main(){ |
353 | 12 assert((new MyStruct!()).i==int.sizeof); |
266 | 13 return 0; |
265 | 14 } |
15 | |
16 struct MyStruct(){ | |
17 int i=func(0).sizeof; | |
18 } | |
19 | |
266 | 20 int func(...){ |
21 return 0; | |
22 } | |
265 | 23 |