143
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Sean Kelly <sean@f4.ca>
|
|
6 // @date 2004-11-16
|
|
7 // @uri@ news:cndnk4$17ld$1@digitaldaemon.com
|
1487
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2283
|
240
|
9
|
|
10 module dstress.run.finally_01;
|
|
11
|
143
|
12 int main(){
|
|
13 int status=0;
|
|
14 try{
|
|
15 try{
|
|
16 status++;
|
|
17 assert(status==1);
|
|
18 throw new Exception("first");
|
|
19 }finally{
|
|
20 status++;
|
|
21 assert(status==2);
|
|
22 status++;
|
|
23 throw new Exception("second");
|
|
24 }
|
|
25 }catch(Exception e){
|
|
26 assert(status==3);
|
|
27 }
|
|
28 return 0;
|
|
29 }
|