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
Reverted r249005 until PowerPC and AIX issues sorted.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Warray-bounds-19.c
blob
e2f9661cde3646a11746a2464437b9c7c9a34788
1
/* PR tree-optimization/59124 */
2
/* { dg-options "-O3 -Warray-bounds" } */
3
4
unsigned
baz
[
6
];
5
6
void
foo
(
unsigned
*
bar
,
unsigned
n
)
7
{
8
unsigned
i
,
j
;
9
10
if
(
n
>
6
)
11
n
=
6
;
12
13
for
(
i
=
1
;
i
<
n
;
i
++)
14
for
(
j
=
i
-
1
;
j
>
0
;
j
--)
15
bar
[
j
-
1
] =
baz
[
j
-
1
];
16
}
17