Sign in
llvm
/
llvm-archive
/
a95f55d472d28a35cc4af5df7749473ca38ee187
/
.
/
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
;
}