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
2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Warray-bounds-9.c
blob
92bcd4e5ce7a2eb3b58287b02ef2fcc53852fd27
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -Warray-bounds" } */
3
4
int
a
[
8
];
5
6
void
7
test
(
unsigned int
n
)
8
{
9
unsigned int
i
;
10
unsigned int
j
;
11
if
(
n
<
8
)
12
for
(
j
=
0
;
j
<
n
;
j
++)
13
{
14
i
=
j
;
15
do
16
a
[
i
+
1
]=
a
[
i
];
17
while
(
i
--);
18
}
19
}