diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-01 05:25:02 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-01 05:25:02 +0000 |
commit | 2a1c363f38e59a5044fc349aa7e538a50954c244 (patch) | |
tree | a0fb324775573ed4cd50f35464f98ae0ac80b15c /test/Preprocessor | |
parent | 852d63b806c5cbd730c6b9d696e2e27d02546b49 (diff) |
PR4283: Don't truncate multibyte character constants in the
preprocessor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/expr_multichar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Preprocessor/expr_multichar.c b/test/Preprocessor/expr_multichar.c new file mode 100644 index 0000000000..4df8f3d4f9 --- /dev/null +++ b/test/Preprocessor/expr_multichar.c @@ -0,0 +1,5 @@ +// RUN: clang-cc < %s -E -verify -triple i686-pc-linux-gnu + +#if (('1234' >> 24) != '1') +#error Bad multichar constant calculation! +#endif |