Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
safecode
/
test
/
cstdlib
/
index-002.c
blob: 4450ebdc1aae93659c1823ff55ba5014a2eba441 [
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
,
'b'
);
return
0
;
}