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
C++: fix-it hint for removing stray semicolons
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wswitch-unreachable-4.c
blob
e7378a7cf18827bacc616c6410f2e81b4eaad3f8
1
/* { dg-do compile } */
2
3
void
4
foo
(
int
a
,
int
b
)
5
{
6
switch
(
a
)
7
{
8
{
int
c
; }
9
{
int
d
; }
10
{
int
e
; }
11
b
++;
/* { dg-warning "statement will never be executed" } */
12
case
1
:
13
break
;
14
}
15
16
switch
(
a
)
17
{
18
{
int
c
; }
19
{
int
d
=
1
; }
/* { dg-warning "statement will never be executed" } */
20
{
int
e
; }
21
b
++;
22
case
1
:
23
break
;
24
}
25
}