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
2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-overflow-17.c
blob
5625bc2a7f3c74a01a8d6f960c96bf5c151acc88
1
/* { dg-do compile } */
2
/* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */
3
4
/* This erroneously gave an overflow warning. */
5
6
extern
void
bar
(
char
);
7
void
8
foo
(
char
*
s
)
9
{
10
int
len
,
i
;
11
12
for
(
len
=
1
;
len
<
5000
; ++
len
)
13
{
14
for
(
i
=
0
;
i
<
len
; ++
i
)
15
{
16
if
(
s
[
i
] !=
'\0'
)
17
bar
(
s
[
i
]);
18
}
19
}
20
}