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