Sign in
llvm
/
llvm-project
/
compiler-rt
/
5effccb101a1cf254f240d6953125148138daf44
/
.
/
test
/
sanitizer_common
/
TestCases
/
wcslen_test.c
blob: 28efd76594081705c5ce5840f4de5ae0cb6c227c [
file
] [
log
] [
blame
]
// RUN: %clang %s -O0 -o %t && %run %t 2>&1
#include
<assert.h>
#include
<wchar.h>
int
main
(
int
argc
,
char
**
argv
)
{
wchar_t
x
[]
=
L
"Hello World!"
;
assert
(
wcslen
(
x
)
==
12
);
return
0
;
}