Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail15535.d(17): Error: `goto default` not allowed in `final switch` statement
5 ---
6 */
7
8 void test()
9 {
10 int i;
11 switch (i)
12 {
13 case 0:
14 final switch (i)
15 {
16 case 1:
17 goto default;
18 }
19 default:
20 break;
21 }
22 }