Mercurial > projects > dstress
view nocompile/b/break_13_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 | 030ce9dfefeb |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Stewart Gordon <smjg@iname.com> // @date@ 2007-01-10 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=827 // @desc@ [Issue 827] Trying to break out of a labelled BlockStatement breaks out of a for loop at its beginning // __DSTRESS_ELINE__ 21 module dstress.nocompile.b.break_13_B; extern void bar(); void foo() { block: { bar(); for (int i = 0; i < 10; i++) { if (i == 5){ break block; } } assert(0); } }