☰
Debian Codegraph
@
1:21.1.8-7
1:21.1.8-13
1:21.1.8-12
1:21.1.8-11
1:21.1.8-10
/
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
wcslen_test.c
☽
☼
compiler-rt/test/sanitizer_common/TestCases/wcslen_test.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang %s -O0 -o %t && %run %t 2>&1
2
3
#include <assert.h>
4
#include <wchar.h>
5
6
int main(int argc, char **argv) {
7
wchar_t x[] = L"Hello World!";
8
assert(wcslen(x) == 12);
9
return 0;
10
}