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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
185
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
1 // $HeadURL$
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
2 // $Date$
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
3 // $Author$
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
4
360
e38919011244 dif. fixes 3
thomask
parents: 185
diff changeset
5 // __DSTRESS_ELINE__ 17
e38919011244 dif. fixes 3
thomask
parents: 185
diff changeset
6
185
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
7 module dstress.nocompile.goto_06;
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
8
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
9 int main(){
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
10 int i=1;
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
11 switch(i){
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
12 case 2:
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
13 return 0;
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
14 case 1:
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
15 switch(i){
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
16 case 1:
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
17 goto case 3;
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
18 default:
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
19 assert(0);
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
20 }
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
21 default:
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
22 assert(0);
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
23 }
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
24
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
25 switch(i){
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
26 case 3:
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
27 assert(0);
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
28 default:
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
29 assert(0);
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
30 }
6067056cad0c fixed goto_4 location
thomask
parents:
diff changeset
31 }