Mercurial > projects > dstress
diff nocompile/finally_02.d @ 338:1f6cf5ccfbc9
1) updated rules to dmd-0.119
2) added __DSTRESS_ELINE__ tags
author | thomask |
---|---|
date | Mon, 21 Mar 2005 20:45:57 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/finally_02.d Mon Mar 21 20:45:57 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// A FinallyStatement may not exit with a goto, break, continue, or return; nor may it be entered with a goto. + +// __DSTRESS_ELINE__ 13 + +module dstress.nocompile.finally_02; + +void test(){ + try{ + goto label; + }finally{ +label: + int dummy; + dummy++; + } +}