Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
strchr-002.c
blob: fa338b797134c4abc5303166d52ce7ab79ca1219 [
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
,
'b'
);
return
0
;
}