Mercurial > projects > dstress
annotate nocompile/goto_06.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 | e38919011244 |
children |
rev | line source |
---|---|
185 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
360 | 5 // __DSTRESS_ELINE__ 17 |
6 | |
185 | 7 module dstress.nocompile.goto_06; |
8 | |
9 int main(){ | |
10 int i=1; | |
11 switch(i){ | |
12 case 2: | |
13 return 0; | |
14 case 1: | |
15 switch(i){ | |
16 case 1: | |
17 goto case 3; | |
18 default: | |
19 assert(0); | |
20 } | |
21 default: | |
22 assert(0); | |
23 } | |
24 | |
25 switch(i){ | |
26 case 3: | |
27 assert(0); | |
28 default: | |
29 assert(0); | |
30 } | |
31 } |