Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/Wimplicit-fallthrough-9.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |