comparison run/b/break_12_A.d @ 1291:5ef63ca6e8c3

When inside a loop, if you call break inside a try block the finally block is never executed Juan Jose Comellas <juanjo@comellas.com.ar> 2006-11-30 http://d.puremagic.com/issues/show_bug.cgi?id=621
author thomask
date Sat, 30 Dec 2006 13:39:30 +0000
parents
children
comparison
equal deleted inserted replaced
1290:e3d0dea394ab 1291:5ef63ca6e8c3
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Juan Jose Comellas <juanjo@comellas.com.ar>
6 // @date@ 2006-11-30
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=621
8 // @desc@ When inside a loop, if you call break inside a try block the finally block is never executed
9
10 module dstress.run.b.break_12_A;
11
12 int main(){
13 int status = 1;
14
15 while(true){
16 try{
17 status += 1;
18 break;
19 }finally{
20 status *= 7;
21 }
22 }
23 if(status != 14){
24 assert(0);
25 }
26
27 return 0;
28 }