2 /* { dg-do compile } */
3 /* { dg-require-effective-target alloca } */
4 /* { dg-options "-Wimplicit-fallthrough" } */
7 extern int bar2 (void);
15 bar (0); /* { dg-warning "statement may fall through" } */
24 { /* { dg-warning "statement may fall through" "" { target c } } */
25 int a
[i
]; /* { dg-warning "statement may fall through" "" { target c++ } } */
34 for (int j
= 0; j
< 10; j
++) /* { dg-warning "statement may fall through" "" { target c } } */
35 map
[j
] = j
; /* { dg-warning "statement may fall through" "" { target c++ } } */
45 while (--i
); /* { dg-warning "statement may fall through" } */
56 bar (1); /* { dg-warning "statement may fall through" } */
78 if (i
& 1) /* { dg-warning "statement may fall through" } */
90 if (i
> 9) /* { dg-warning "statement may fall through" } */
108 if (r
) /* { dg-warning "statement may fall through" } */
120 if (!i
) /* { dg-warning "statement may fall through" } */