Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
b42cc22ad4b3cc4c4cd697052b8f1dd85df96d0a
/
.
/
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
--);
}
}