2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough" } */
7 /* Test if with else. */
15 if (i
) /* { dg-warning "statement may fall through" } */
30 bar (3); /* { dg-warning "statement may fall through" } */
41 bar (2); /* { dg-warning "statement may fall through" } */
53 bar (3); /* { dg-warning "statement may fall through" } */
61 if (i
) /* { dg-warning "statement may fall through" } */
76 bar (3); /* { dg-warning "statement may fall through" } */
99 bar (3); /* { dg-warning "statement may fall through" } */
107 if (i
) /* { dg-warning "statement may fall through" } */
142 bar (9); /* { dg-warning "statement may fall through" } */
150 if (i
) /* { dg-warning "statement may fall through" } */
162 if (i
) /* { dg-warning "statement may fall through" } */
174 if (i
) /* { dg-warning "statement may fall through" } */
187 if (i
) /* { dg-warning "statement may fall through" } */
199 if (i
) /* { dg-warning "statement may fall through" } */
214 bar (2); /* { dg-warning "statement may fall through" } */
226 bar (2); /* { dg-warning "statement may fall through" } */
235 if (i
) /* { dg-warning "statement may fall through" } */
247 if (i
) /* { dg-warning "statement may fall through" } */