Mercurial > projects > dstress
diff nocompile/switch_16.d @ 189:e0bcd344aa2b
extended break and switch tests
author | thomask |
---|---|
date | Thu, 09 Dec 2004 07:44:29 +0000 |
parents | |
children | f87ba6507260 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/switch_16.d Thu Dec 09 07:44:29 2004 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.nocompile.switch_16; + +int main(){ + int i; + switch(i){ + case 3: + return 0; + default: + assert(0); + default: + assert(0); + } + return 0; +}