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 target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wimplicit-fallthrough-22.c
blob
f7d86fa3755db36503db5bf16a685163a6acd620
1
/* { dg-do compile } */
2
/* { dg-options "-Wimplicit-fallthrough" } */
3
4
void
bar
(
int
);
5
6
void
7
foo
(
int
i
)
8
{
9
switch
(
i
)
10
{
11
case
1
:
12
bar
(
1
);
13
/* FALLTHROUGH */
14
case
2
:
15
bar
(
2
);
/* { dg-warning "statement may fall through" } */
16
case
3
:
17
bar
(
3
);
/* { dg-warning "statement may fall through" } */
18
case
4
:
19
bar
(
4
);
20
default
:
21
break
;
22
}
23
}