Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
safecode
/
test
/
cstdlib
/
bcopy-003.c
blob: 7018626c6e684c2009f3fe42bdcfa941c28d2942 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// bcopy() with the destination object being too small to hold the data.
#include
<strings.h>
#include
<stdint.h>
int
main
()
{
int32_t
src
[
100
];
int8_t
dst
[
400
];
bcopy
(
src
,
&
dst
[
300
],
400
);
return
0
;
}