OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c/30762
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wunreachable-8.c
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