Mercurial > projects > dstress
annotate run/bug_cgcod_1640_A.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 | 6e4063f99377 |
children |
rev | line source |
---|---|
210 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ h3r3tic <foo@bar.baz> | |
6 // @date@ 2004-12-25 | |
7 // @uri@ news:cqihjc$16c8$1@digitaldaemon.com | |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2602 |
210 | 9 |
10 module dstress.run.bug_cgcod_1640_A; | |
11 | |
12 struct MyStruct{ | |
13 int a, b, c; | |
14 } | |
15 | |
16 void bar() {} | |
17 | |
18 int main(){ | |
19 MyStruct[] arr; | |
20 foreach(MyStruct a; arr){ | |
21 bar(); | |
22 } | |
23 return 0; | |
24 } |