Mercurial > projects > dstress
comparison run/return_04.d @ 192:014844597bbd
1) updated results
2) adjusted mime type to text/x-dsrc (https://bugs.freedesktop.org/show_bug.cgi?id=676)
author | thomask |
---|---|
date | Sat, 11 Dec 2004 17:46:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
191:c5cbab12376d | 192:014844597bbd |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.return_04; | |
6 | |
7 int status; | |
8 | |
9 int test(char[][] args){ | |
10 try{ | |
11 try{ | |
12 if(args.length==1){ | |
13 return -1; | |
14 } | |
15 }finally{ | |
16 assert(status==0); | |
17 status+=2; | |
18 } | |
19 }finally{ | |
20 assert(status==2); | |
21 status+=3; | |
22 } | |
23 return 0; | |
24 } | |
25 | |
26 int main(char[][] args){ | |
27 assert(status == 0); | |
28 assert(args.length == 1); | |
29 assert(test(args) == -1); | |
30 assert(status == 5); | |
31 return 0; | |
32 } |