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 | d8cec57b9dc2e39d6c853c28d1062c3a99186883 (patch) | |
| tree | fa07c73f887c283774104371e010678751bf5499 /clang/test/Preprocessor | |
| parent | cb8317dac955bfd58be4461662b640201c2bba63 (diff) | |
| download | bcm5719-llvm-d8cec57b9dc2e39d6c853c28d1062c3a99186883.tar.gz bcm5719-llvm-d8cec57b9dc2e39d6c853c28d1062c3a99186883.zip | |
PR4283: Don't truncate multibyte character constants in the
preprocessor.
llvm-svn: 72686
Diffstat (limited to 'clang/test/Preprocessor')
| -rw-r--r-- | clang/test/Preprocessor/expr_multichar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/expr_multichar.c b/clang/test/Preprocessor/expr_multichar.c new file mode 100644 index 00000000000..4df8f3d4f9e --- /dev/null +++ b/clang/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 |

