Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr54132.c
blob: 97bc01caf8de79010ed12613afb7be91915b0f8c [
file
] [
log
] [
blame
]
/* { dg-do run } */
extern
void
abort
(
void
);
void
foo
(
char
*
p
,
int
n
)
{
int
i
;
for
(
i
=
1
;
i
<
n
;
i
++)
p
[
i
]
=
p
[
i
-
1
];
}
int
main
()
{
char
a
[
1024
];
a
[
0
]
=
1
;
foo
(
a
,
1024
);
if
(
a
[
1023
]
!=
1
)
abort
();
return
0
;
}