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
* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wunreachable-8.c
blob
7fbb2e6ad60a8f96c4398f1a2094e240fc3cb3af
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wunreachable-code" } */
3
float
Factorial
(
float
X
)
4
{
5
float
val
=
1.0
;
6
int
k
,
j
;
7
for
(
k
=
1
;
k
<
5
;
k
++)
8
{
9
val
+=
1.0
;
10
}
11
return
(
val
);
/* { dg-bogus "will never be executed" } */
12
}
13
14
int
main
(
void
)
15
{
16
float
result
;
17
result
=
Factorial
(
2.1
);
18
return
(
0
);
19
}
20