2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough" } */
6 extern int bar2 (void);
14 bar (0); /* { dg-warning "statement may fall through" } */
23 { /* { dg-warning "statement may fall through" "" { target c } 23 } */
24 int a[i]; /* { dg-warning "statement may fall through" "" { target c++ } 24 } */
33 for (int j = 0; j < 10; j++) /* { dg-warning "statement may fall through" "" { target c } 33 } */
34 map[j] = j; /* { dg-warning "statement may fall through" "" { target c++ } 34 } */
44 while (--i); /* { dg-warning "statement may fall through" } */
55 bar (1); /* { dg-warning "statement may fall through" } */
77 if (i & 1) /* { dg-warning "statement may fall through" } */
89 if (i > 9) /* { dg-warning "statement may fall through" } */
107 if (r) /* { dg-warning "statement may fall through" } */
119 if (!i) /* { dg-warning "statement may fall through" } */