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-17.c
blob
23ff5f184fbb2663b77b2cb9f88e01d1ab52dbf5
1
/* PR c/7652 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wimplicit-fallthrough" } */
4
5
/* Another nested switch, and with an initialization on top. Check that
6
we do not warn here as the case 3 falls through to break. */
7
8
void
9
f
(
int
i
)
10
{
11
switch
(
i
)
12
{
13
case
1
:
14
{
15
int
t
=
3
;
16
switch
(
i
)
17
{
18
case
3
:
19
i
+=
10
;
20
case
4
:
21
break
;
22
}
23
break
;
24
}
25
case
2
:
26
--
i
;
27
break
;
28
}
29
}