diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-03 03:47:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-03 03:47:30 +0000 |
commit | 1cb0e61e985e80a11f083d437836d7c223cfab09 (patch) | |
tree | b6d81d3fd29d4988f07c8f6671786ba0a79b2485 /clang/test | |
parent | 9ff58d7cafa8fe695ae838b3decc027c5c9169d4 (diff) | |
download | bcm5719-llvm-1cb0e61e985e80a11f083d437836d7c223cfab09.tar.gz bcm5719-llvm-1cb0e61e985e80a11f083d437836d7c223cfab09.zip |
Fix PR2252: don't warn on negating an unsigned value ever, and don't emit
'integer constant is so large that it is unsigned' warning for hex literals.
llvm-svn: 53070
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Lexer/number.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Lexer/number.c b/clang/test/Lexer/number.c index e48816e4053..bafbc022d5e 100644 --- a/clang/test/Lexer/number.c +++ b/clang/test/Lexer/number.c @@ -1,6 +1,9 @@ // RUN: clang %s -fsyntax-only float X = 1.17549435e-38F; - float Y = 08.123456; +// PR2252 +#if -0x8000000000000000 // should not warn. +#endif + |