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
2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wunreachable-3.c
blob
966d89e3abc7f1cabc494b0050baac8f09ff1193
1
/* PR c/10175 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wunreachable-code" } */
4
5
int
i
,
j
;
6
int
main
(
void
)
7
{
8
if
(
0
) {
9
i
=
0
;
/* { dg-warning "will never be executed" "" } */
10
j
=
0
;
11
}
else
{
12
i
=
1
;
13
j
=
1
;
14
}
15
16
return
0
;
17
}