Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr67077.c
blob: 555b1e3a04a8a6e5077158c312e18ca7705d0f57 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wall -O2" } */
unsigned
char
buffer
[
8
];
unsigned
long
foo
(
void
)
{
unsigned
long
i
;
i
=
buffer
[
0
];
if
(
i
>=
8
)
return
i
-
7
;
i
++;
while
(
i
>
8
)
{
if
(
buffer
[
i
-
1
]
!=
0
)
return
0
;
i
--;
}
return
1
;
}