repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85662
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wimplicit-fallthrough-9.c
blob
394d6998b65549397d93fd00e7bac80f7b85618b
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
}