PR middle-end/77674
[official-gcc.git] / gcc / testsuite / c-c++-common / Wimplicit-fallthrough-11.c
blobe8f47f56ab99f2f10377150592a5e2bfbeef1999
1 /* PR c/7652 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough -O2" } */
5 /* Prevent false positive with optimizations. */
7 extern void g (int);
9 void
10 f (int i)
12 switch (i)
14 case 1:
15 if (i > 10)
16 g (0);
17 else
18 goto L;
19 break;
21 case 2:;