Sign in
llvm
/
llvm-archive
/
a95f55d472d28a35cc4af5df7749473ca38ee187
/
.
/
safecode
/
test
/
cstdlib
/
strchr-001.c
blob: 8dae33f4c4c1863737d9fd941bf3c1092007f3c6 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// Call strchr() on an unterminated string, and the character
// to find is not inside the string.
#include
<string.h>
int
main
()
{
char
a
[
1000
];
memset
(
a
,
'a'
,
1000
);
strchr
(
a
,
't'
);
return
0
;
}