# HG changeset patch # User thomask # Date 1123969010 0 # Node ID 9337dc166495b1e01e2991107c44683af91226a1 # Parent e72b992e95ea758660c2e9e080de366a3400c905 labeled breaks and labeled enclosing scopes BCS 2005-08-11 news:ddfsnp$eit$1@digitaldaemon.com diff -r e72b992e95ea -r 9337dc166495 nocompile/b/break_11_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/break_11_A.d Sat Aug 13 21:36:50 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS +// @date@ 2005-08-11 +// @uri@ news:ddfsnp$eit$1@digitaldaemon.com +// @desc@ labeled breaks and labeled enclosing scopes + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.b.break_11_A; + +void main(){ + foo:{ + while(true){ + break foo; + } + } +} \ No newline at end of file diff -r e72b992e95ea -r 9337dc166495 nocompile/b/break_11_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/break_11_B.d Sat Aug 13 21:36:50 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS +// @date@ 2005-08-11 +// @uri@ news:ddfsnp$eit$1@digitaldaemon.com +// @desc@ labeled breaks and labeled enclosing scopes + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.b.break_11_B; + +void main(){ + foo:{ + for(; true;){ + break foo; + } + } +} \ No newline at end of file diff -r e72b992e95ea -r 9337dc166495 nocompile/b/break_11_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/break_11_C.d Sat Aug 13 21:36:50 2005 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS +// @date@ 2005-08-11 +// @uri@ news:ddfsnp$eit$1@digitaldaemon.com +// @desc@ labeled breaks and labeled enclosing scopes + +// __DSTRESS_ELINE__ 18 + +module dstress.nocompile.b.break_11_C; + +void main(){ + foo:{ + switch(1){ + default:{ + break foo; + } + } + } +} \ No newline at end of file diff -r e72b992e95ea -r 9337dc166495 nocompile/b/break_11_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/break_11_D.d Sat Aug 13 21:36:50 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ BCS +// @date@ 2005-08-11 +// @uri@ news:ddfsnp$eit$1@digitaldaemon.com +// @desc@ labeled breaks and labeled enclosing scopes + +// __DSTRESS_ELINE__ 17 + +module dstress.nocompile.b.break_11_D; + +void main(){ + foo:{ + do{ + break foo; + }while(true) + } +} \ No newline at end of file