summaryrefslogtreecommitdiff
path: root/test/Preprocessor/pr19649-unsigned-wchar_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/pr19649-unsigned-wchar_t.c')
-rw-r--r--test/Preprocessor/pr19649-unsigned-wchar_t.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/pr19649-unsigned-wchar_t.c b/test/Preprocessor/pr19649-unsigned-wchar_t.c
new file mode 100644
index 000000000000..4bbe1b57ce46
--- /dev/null
+++ b/test/Preprocessor/pr19649-unsigned-wchar_t.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple i386-pc-cygwin -E -x c %s
+// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -E -fshort-wchar -x c %s
+
+#if (L'\0' - 1 < 0)
+# error "Unexpected expression evaluation result"
+#endif