2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough" } */
7 /* Test if without else. */
15 if (i
) /* { dg-warning "statement may fall through" } */
24 if (i
) /* { dg-warning "statement may fall through" } */
53 if (i
) /* { dg-warning "statement may fall through" } */
63 if (i
) /* { dg-warning "statement may fall through" } */
95 if (i
) /* { dg-warning "statement may fall through" } */
118 if (i
) /* { dg-warning "statement may fall through" } */
131 bar (2); /* { dg-warning "statement may fall through" } */
152 bar (2); /* { dg-warning "statement may fall through" } */
177 bar (4); /* { dg-warning "statement may fall through" } */
189 if (i
) /* { dg-warning "statement may fall through" } */