Sign in
llvm
/
llvm-archive
/
a95f55d472d28a35cc4af5df7749473ca38ee187
/
.
/
safecode
/
test
/
cstdlib
/
rindex-001.c
blob: f58ada8bdde3bf92ae313c08d65f6279ef818bbd [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
// rindex() with an unterminated string searching for a character not
// that is not found in the string.
#include
<strings.h>
int
main
()
{
char
a
[
1000
];
memset
(
a
,
'a'
,
1000
);
rindex
(
a
,
' '
);
return
0
;
}