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