libgo: update to Go1.10beta1
[official-gcc.git] / gcc / testsuite / c-c++-common / Wimplicit-fallthrough-35.c
blob9a0aba6bd66bf59525d9ec707044ef9878483e05
1 /* PR c/79152 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wimplicit-fallthrough" } */
5 extern void foo (int);
7 void
8 f (int i)
10 switch (i)
12 case 0:
13 foo (0);
14 l1:
15 foo (1);
18 switch (i)
20 case 0:
21 foo (0);
22 l2:;
25 switch (i)
27 case 0:
28 foo (0);
29 l3:
30 l4:
31 foo (1);
34 switch (i)
36 case 0:
37 foo (0);
38 l5:
39 l6:;
42 switch (i)
44 case 0:
45 foo (0); /* { dg-warning "statement may fall through" } */
46 l7:
47 l8:
48 case 1:
49 foo (1);
52 switch (i)
54 case 0:
55 foo (0); /* { dg-warning "statement may fall through" } */
56 l9:
57 case 1:
58 l10:
59 foo (1);