Mercurial > projects > dstress
view run/b/break_12_B.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | 5ef63ca6e8c3 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Juan Jose Comellas <juanjo@comellas.com.ar> // @date@ 2006-11-30 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=621 // @desc@ When inside a loop, if you call break inside a try block the finally block is never executed module dstress.run.b.break_12_B; int main(){ int status = 1; try{ status += 1; break; }finally{ status *= 7; } if(status != 14){ assert(0); } return 0; }