Mercurial > projects > dstress
annotate run/s/scope_05_D.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_05_D; | |
6 | |
7 int main(){ | |
8 | |
9 int status; | |
10 | |
11 try{ | |
12 scope(failure) status++; | |
13 if(++status != 1){ | |
14 assert(0); | |
15 } | |
16 throw new Exception("msg"); | |
17 }catch(Exception e){ | |
18 if(status == 2){ | |
19 return 0; | |
20 } | |
21 } | |
22 | |
23 | |
24 return 0; | |
25 } |