1 /* { dg-do compile } */
2
3 void
4 foo (int a, int b)
5 {
6 switch (a)
7 {
8 { int c; }
9 { int d; }
10 { int e; }
11 b++; /* { dg-warning "statement will never be executed" } */
12 case 1:
13 break;
14 }
15
16 switch (a)
17 {
18 { int c; }
19 { int d = 1; } /* { dg-warning "statement will never be executed" } */
20 { int e; }
21 b++;
22 case 1:
23 break;
24 }
25 }