PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / Wimplicit-fallthrough-17.c
blob23ff5f184fbb2663b77b2cb9f88e01d1ab52dbf5
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 not warn here as the case 3 falls through to break. */
8 void
9 f (int i)
11 switch (i)
13 case 1:
15 int t = 3;
16 switch (i)
18 case 3:
19 i += 10;
20 case 4:
21 break;
23 break;
25 case 2:
26 --i;
27 break;