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
* gcc.dg/i386-fpcvt-1.c: New test.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wunreachable-1.c
blob
d6d59b481aaca261f5b17da179c6878b894a2ccf
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wunreachable-code" } */
3
4
extern
void
foo
(
void
);
5
extern
void
baz
(
void
);
6
7
void
bar
(
int
i
)
8
{
9
if
(
i
<
2
)
10
{
11
baz
();
12
return
;
13
}
14
else
15
{
16
if
(
i
>=
4
&&
i
<=
5
)
17
foo
();
18
return
;
19
}
20
21
baz
();
/* { dg-warning "will never be executed" "" } */
22
baz
();
23
baz
();
24
}