Sign in
gnu
/
gcc
/
309e2d95e3b930c6f15c8a5346b913158404c76d
/
.
/
gcc
/
testsuite
/
gcc.dg
/
Warray-bounds-9.c
blob: 92bcd4e5ce7a2eb3b58287b02ef2fcc53852fd27 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O3 -Warray-bounds" } */
int
a
[
8
];
void
test
(
unsigned
int
n
)
{
unsigned
int
i
;
unsigned
int
j
;
if
(
n
<
8
)
for
(
j
=
0
;
j
<
n
;
j
++)
{
i
=
j
;
do
a
[
i
+
1
]=
a
[
i
];
while
(
i
--);
}
}