2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough" } */
7 /* Test if with more elses. */
15 if (i
> 5) /* { dg-warning "statement may fall through" } */
28 if (i
> 5) /* { dg-warning "statement may fall through" } */
45 else if (i
> 10) /* { dg-warning "statement may fall through" } */
58 else if (i
> 10) /* { dg-warning "statement may fall through" } */
71 if (i
> 5) /* { dg-warning "statement may fall through" } */
84 if (i
> 5) /* { dg-warning "statement may fall through" } */
99 if (i
> 5) /* { dg-warning "statement may fall through" } */
112 if (i
> 5) /* { dg-warning "statement may fall through" } */
131 else if (i
> 15) /* { dg-warning "statement may fall through" } */
144 else if (i
> 15) /* { dg-warning "statement may fall through" } */
157 else if (i
> 10) /* { dg-warning "statement may fall through" } */
170 else if (i
> 10) /* { dg-warning "statement may fall through" } */
183 if (i
> 5) /* { dg-warning "statement may fall through" } */
196 if (i
> 5) /* { dg-warning "statement may fall through" } */
215 else if (i
> 15) /* { dg-warning "statement may fall through" } */
231 bar (4); /* { dg-warning "statement may fall through" } */