Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/Wimplicit-fallthrough-9.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR c/7652 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Wimplicit-fallthrough" } */ | |
4 | |
5 /* Test we don't remove FALLTHROUGH () too early. */ | |
6 | |
7 extern void h (int); | |
8 | |
9 void | |
10 g (int i) | |
11 { | |
12 switch (i) | |
13 { | |
14 case 1: | |
15 { | |
16 switch (i) | |
17 { | |
18 case 3: | |
19 h (7); | |
20 __attribute__((fallthrough)); | |
21 case 4:; | |
22 } | |
23 } | |
24 case 2:; | |
25 } | |
26 } |