Mercurial > projects > dstress
annotate run/s/switch_22_H.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 | 986983b8cf7a |
children |
rev | line source |
---|---|
1060 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <BCS@pathlink.com> | |
6 // @date@ 2006-06-16 | |
7 // @uri@ news:e6umde$2ok0$2@digitaldaemon.com | |
1336 | 8 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=729 |
1060 | 9 |
10 module dstress.run.s.switch_22_H; | |
11 | |
12 int main(){ | |
1061 | 13 int i = 3; |
1060 | 14 |
15 switch(2){ | |
16 case 2: | |
1061 | 17 scope(success) i++; |
1060 | 18 |
19 default: | |
20 } | |
21 | |
1061 | 22 if(i != 4){ |
1060 | 23 assert(0); |
24 } | |
25 | |
26 return 0; | |
27 } |