Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
cstdlib
/
strlen-001.c
blob: 9959a5cc4ede1daf9388ab773c51b0d8dcb3f7b7 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
#include
<string.h>
// strlen() on unterminated string.
int
main
()
{
char
c
[
1
]
=
{
's'
};
int
result
;
result
=
strlen
(&
c
[
0
]);
return
0
;
}