1 /* { dg-do compile } */
2 /* { dg-options "-Wimplicit-fallthrough" } */
12 bar (1); /* { dg-bogus "this statement may \[laf]* through" } */
18 bar (3); /* { dg-bogus "this statement may \[laf]* through" } */
20 /* Some other comment. */
25 bar (5); /* { dg-bogus "this statement may \[laf]* through" } */
31 bar (7); /* { dg-bogus "this statement may \[laf]* through" } */
33 /* ... fallthrough ... */
34 /* Some other comment. */
35 /* And yet another. */
40 bar (9); /* { dg-bogus "this statement may \[laf]* through" } */
41 /* Intentional Fallthru */
46 bar (11); /* { dg-bogus "this statement may \[laf]* through" } */
47 /* intentionally fall through */
52 bar (13); /* { dg-bogus "this statement may \[laf]* through" } */
53 /* Falls Through - for reasons known only to the author. */
58 bar (15); /* { dg-bogus "this statement may \[laf]* through" } */
64 bar (17); /* { dg-bogus "this statement may \[laf]* through" } */
70 bar (19); /* { dg-bogus "this statement may \[laf]* through" } */
76 bar (21); /* { dg-bogus "this statement may \[laf]* through" } */
77 /*lint -fallthrough */
82 bar (23); /* { dg-bogus "this statement may \[laf]* through" } */
88 bar (25); /* { dg-bogus "this statement may \[laf]* through" } */
94 bar (27); /* { dg-bogus "this statement may \[laf]* through" } */
95 /*Intentional fallthru*/
100 bar (29); /* { dg-bogus "this statement may \[laf]* through" } */
101 /*Intentionally fallthru*/
106 bar (31); /* { dg-bogus "this statement may \[laf]* through" } */
112 bar (33); /* { dg-bogus "this statement may \[laf]* through" } */
118 bar (35); /* { dg-bogus "this statement may \[laf]* through" } */
119 /* Else, fall-through. */
129 bar (1); /* { dg-bogus "this statement may \[laf]* through" } */
135 bar (3); /* { dg-bogus "this statement may \[laf]* through" } */
137 // Some other comment.
142 bar (5); /* { dg-bogus "this statement may \[laf]* through" } */
148 bar (7); /* { dg-bogus "this statement may \[laf]* through" } */
150 // ... fallthrough ...
151 // Some other comment.
157 bar (9); /* { dg-bogus "this statement may \[laf]* through" } */
158 // Intentional Fallthru
163 bar (11); /* { dg-bogus "this statement may \[laf]* through" } */
164 // intentionally fall through
169 bar (13); /* { dg-bogus "this statement may \[laf]* through" } */
170 // Falls Through - for reasons known only to the author.
175 bar (15); /* { dg-bogus "this statement may \[laf]* through" } */
181 bar (17); /* { dg-bogus "this statement may \[laf]* through" } */
187 bar (19); /* { dg-bogus "this statement may \[laf]* through" } */
193 bar (21); /* { dg-bogus "this statement may \[laf]* through" } */
199 bar (23); /* { dg-bogus "this statement may \[laf]* through" } */
205 bar (25); /* { dg-bogus "this statement may \[laf]* through" } */
211 bar (27); /* { dg-bogus "this statement may \[laf]* through" } */
212 //Intentional fallthru
217 bar (29); /* { dg-bogus "this statement may \[laf]* through" } */
218 //Intentionally fallthru
223 bar (31); /* { dg-bogus "this statement may \[laf]* through" } */
229 bar (33); /* { dg-bogus "this statement may \[laf]* through" } */
235 bar (35); /* { dg-bogus "this statement may \[laf]* through" } */
236 // Else, fall-through