203
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.break_09;
|
|
6
|
|
7 int status;
|
|
8
|
1559
|
9 int test(string[] args){
|
203
|
10
|
|
11 loop: while(1){
|
|
12 try{
|
|
13 try{
|
|
14 if(args.length==1){
|
|
15 break loop;
|
|
16 }
|
|
17 }finally{
|
1559
|
18 if(0 != status){
|
|
19 assert(0);
|
|
20 }
|
203
|
21 status+=2;
|
|
22 }
|
|
23 }finally{
|
1559
|
24 if(2 != status){
|
|
25 assert(0);
|
|
26 }
|
203
|
27 status+=3;
|
|
28 }
|
|
29 return 0;
|
|
30 }
|
|
31 return -1;
|
|
32 }
|
|
33
|
1559
|
34 int main(string[] args){
|
|
35 if(0 != status ){
|
|
36 assert(0);
|
|
37 }
|
|
38 if(1 != args.length ){
|
|
39 assert(0);
|
|
40 }
|
|
41 if(-1 != test(args) ){
|
|
42 assert(0);
|
|
43 }
|
|
44 if(5 != status ){
|
|
45 assert(0);
|
|
46 }
|
203
|
47 return 0;
|
|
48 }
|