aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-08-06 17:28:23 +0000
committerDale Johannesen <dalej@apple.com>2009-08-06 17:28:23 +0000
commit27698ebdf88494a31bc161f698dc4dab008ecac6 (patch)
tree9263f5d23ab6f382f1561db6cff27fd90e03b221 /test/FrontendC
parent8e1593ec3609aa033501e98b976e69e0b9dbcc3b (diff)
downloadexternal_llvm-27698ebdf88494a31bc161f698dc4dab008ecac6.zip
external_llvm-27698ebdf88494a31bc161f698dc4dab008ecac6.tar.gz
external_llvm-27698ebdf88494a31bc161f698dc4dab008ecac6.tar.bz2
Testcase for llvm-gcc 78324 (although in normal
testing mode it won't test much). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/wchar-const.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/FrontendC/wchar-const.c b/test/FrontendC/wchar-const.c
new file mode 100644
index 0000000..0cb5ecb
--- /dev/null
+++ b/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 <ctype.h>
+extern void foo(const wchar_t* p);
+int main (int argc, const char * argv[])
+{
+ foo(L"This is some text");
+ return 0;
+}