diff --git a/llvm/test/FrontendC/wchar-const.c b/llvm/test/FrontendC/wchar-const.c new file mode 100644 index 000000000000..0cb5ecb4a886 --- /dev/null +++ b/llvm/test/FrontendC/wchar-const.c @@ -0,0 +1,9 @@ +// RUN: %llvmgcc -S %s -o - | grep {constant \\\[18 x} | grep { 84, } +// This should pass for any endianness combination of host and target. +#include +extern void foo(const wchar_t* p); +int main (int argc, const char * argv[]) +{ + foo(L"This is some text"); + return 0; +}