diff options
Diffstat (limited to 'test/Preprocessor/pr19649-signed-wchar_t.c')
-rw-r--r-- | test/Preprocessor/pr19649-signed-wchar_t.c | 6 |
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 0000000..f76f431 --- /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 |