Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
memcmp-002.c
blob: 49f176d00cd5d49c0f6fb14c5d394078fbd65887 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
#include
<string.h>
// memcmp() past the end of one memory object but not the another.
int
main
()
{
char
a
[
10
]
=
"abcdefg"
;
char
b
[
20
]
=
"abcdefg"
;
int
result
;
result
=
memcmp
(&
a
[
1
],
&
b
[
1
],
10
);
return
0
;
}