PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / Wimplicit-fallthrough-16.c
blob923f0121475b21f80bf9c21da293d3495fe7b2ca
1 /* PR c/7652 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough" } */
5 /* Another nested switch, and with an initialization on top. Check that
6 we do warn here. */
8 void
9 f (int i)
11 switch (i)
13 case 1:
15 int t = 3;
16 switch (i)
18 case 3:
19 if (i > 5)
20 --i;
21 i += 10; /* { dg-warning "statement may fall through" } */
22 case 4:
23 t /= 5;
24 break;
26 break;
28 case 2:
29 --i;
30 break;