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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstringop-overflow-74.c
blob
bacec964d36bbde8d271e5a7c7226cc71aab218d
1
/* PR middle-end/102200 - ICE on a min of a decl and pointer in a loop
2
{ dg-do compile }
3
{ dg-options "-O2 -Wall" } */
4
5
typedef
__SIZE_TYPE__
size_t
;
6
7
extern
char
a
[],
n
;
8
9
void
f
(
void
)
10
{
11
char
*
p
=
a
;
12
size_t
end
=
1
;
13
14
while
(
n
)
15
{
16
if
(
p
< (
char
*)
end
)
17
*
p
=
';'
;
18
19
if
(
p
> (
char
*)&
end
)
20
p
= (
char
*)&
end
;
21
}
22
}