Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail73.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail73.d(20): Error: `case` not in `switch` statement
5 ---
6 */
7
8 // segfault DMD 0.120
9 // https://www.digitalmars.com/d/archives/digitalmars/D/bugs/4634.html
10
11 void main()
12 {
13 int u=2;
14
15 switch(u)
16 {
17 case 1:
18 void j()
19 {
20 case 2:
21 u++;
22 }
23 break;
24
25 default:
26 break;
27 }
28 }