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
AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr54132.c
blob
97bc01caf8de79010ed12613afb7be91915b0f8c
1
/* { dg-do run } */
2
3
extern
void
abort
(
void
);
4
void
foo
(
char
*
p
,
int
n
)
5
{
6
int
i
;
7
for
(
i
=
1
;
i
<
n
;
i
++)
8
p
[
i
] =
p
[
i
-
1
];
9
}
10
int
main
()
11
{
12
char
a
[
1024
];
13
a
[
0
] =
1
;
14
foo
(
a
,
1024
);
15
if
(
a
[
1023
] !=
1
)
16
abort
();
17
return
0
;
18
}