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