2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough" } */
21 __attribute__((fallthrough
));
32 if (i
) /* { dg-warning "statement may fall through" } */
37 __attribute__((fallthrough
));
53 else if (i
> 10) /* { dg-warning "statement may fall through" } */
96 bar (2); /* { dg-warning "statement may fall through" } */
107 __attribute__((fallthrough
));
115 bar (2); /* { dg-warning "statement may fall through" } */
126 __attribute__((fallthrough
));
131 __attribute__((fallthrough
));
145 __attribute__((fallthrough
));
150 __attribute__((fallthrough
));
153 bar (2); /* { dg-warning "statement may fall through" } */
164 __attribute__((fallthrough
));
166 else if (i
> 10) /* { dg-warning "statement may fall through" } */
172 __attribute__((fallthrough
));
180 if (i
) /* { dg-warning "statement may fall through" } */
191 __attribute__((fallthrough
));
203 __attribute__((fallthrough
));
213 __attribute__((fallthrough
));
227 else if (i
> 10) /* { dg-warning "statement may fall through" } */
234 __attribute__((fallthrough
));