Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
rindex-002.c
blob: 4b32ce5f812345347443fd0c4c4689df46e1153d [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// rindex() on an unterminated string, with the character being searched
// for not found in the string.
#include
<strings.h>
int
main
()
{
char
a
[
1000
];
memset
(
a
,
'a'
,
1000
);
rindex
(
a
,
'X'
);
return
0
;
}