Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
safecode
/
test
/
cstdlib
/
memcmp-001.c
blob: 11ef4116efa0540a7a94176a55b2c68b8eb21711 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
#include
<string.h>
// memcmp() past the end of a memory object.
int
main
()
{
char
c
[]
=
"abcdef"
;
char
*
d
=
&
c
[
0
];
memcmp
(&
c
[
0
],
d
,
20
);
return
0
;
}