diff --git a/compiler-rt/test/sanitizer_common/TestCases/wcslen_test.c b/compiler-rt/test/sanitizer_common/TestCases/wcslen_test.c new file mode 100644 --- /dev/null +++ b/compiler-rt/test/sanitizer_common/TestCases/wcslen_test.c @@ -0,0 +1,10 @@ +// RUN: %clang %s -O0 -o %t && %run %t 2>&1 + +#include +#include + +int main(int argc, char **argv) { + wchar_t x[] = L"Hello World!"; + assert(wcslen(x) == 12); + return 0; +}