annotate run/break_05.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents e0bcd344aa2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
189
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
1 // $HeadURL$
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
2 // $Date$
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
3 // $Author$
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
4
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
5 module dstress.run.break_05;
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
6
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
7 int main(){
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
8 int i=1;
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
9 outer: switch(i){
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
10 case 1:
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
11 inner: switch(i){
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
12 case 1:
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
13 break inner;
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
14 default:
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
15 assert(0);
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
16 }
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
17 return 0;
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
18 default:
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
19 assert(0);
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
20 }
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
21 assert(0);
e0bcd344aa2b extended break and switch tests
thomask
parents:
diff changeset
22 }