Mercurial > projects > dstress
annotate run/s/scope_06_E.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 | c2931e457792 |
children |
rev | line source |
---|---|
897 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.s.scope_06_E; | |
6 | |
7 int main(){ | |
8 int a; | |
9 | |
10 { | |
11 scope(success){ | |
12 if(a != 10){ | |
13 assert(0); | |
14 } | |
15 | |
16 a++; | |
17 } | |
18 | |
19 scope(failure){ | |
20 assert(0); | |
21 } | |
22 | |
23 if(a!=0){ | |
24 assert(0); | |
25 }else{ | |
26 a = 10; | |
27 } | |
28 } | |
29 | |
30 if(a != 11){ | |
31 assert(0); | |
32 } | |
33 | |
34 return 0; | |
35 | |
36 } |