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