summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-09 22:22:12 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-09 22:22:12 +0000
commit18a2c2c0b9d2a9109e2abefed8426bc9ff2d0aab (patch)
tree0e77ba3066c8f9868ba4f89aac6ebf9fb27d7ee9 /clang/test/Preprocessor
parentb332ba3a51747cf5f0fad83dda43dc4b42b560de (diff)
downloadbcm5719-llvm-18a2c2c0b9d2a9109e2abefed8426bc9ff2d0aab.tar.gz
bcm5719-llvm-18a2c2c0b9d2a9109e2abefed8426bc9ff2d0aab.zip
Split out -Wconversion warnings about constant precision into their
own subcategory, -Wconstant-conversion, which is on by default. Tweak the constant folder to give better results in the invalid case of a negative shift amount. Implements rdar://problem/6792488 llvm-svn: 118636
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/pushable-diagnostics.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Preprocessor/pushable-diagnostics.c b/clang/test/Preprocessor/pushable-diagnostics.c
index 567a866fa33..877eaaa0b36 100644
--- a/clang/test/Preprocessor/pushable-diagnostics.c
+++ b/clang/test/Preprocessor/pushable-diagnostics.c
@@ -4,14 +4,14 @@
#pragma clang diagnostic puhs // expected-warning {{pragma diagnostic expected 'error', 'warning', 'ignored', 'fatal', 'push', or 'pop'}}
-char a = 'df'; // expected-warning{{multi-character character constant}}
+int a = 'df'; // expected-warning{{multi-character character constant}}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmultichar"
-char b = 'df'; // no warning.
+int b = 'df'; // no warning.
#pragma clang diagnostic pop
-char c = 'df'; // expected-warning{{multi-character character constant}}
+int c = 'df'; // expected-warning{{multi-character character constant}}
#pragma clang diagnostic pop // expected-warning{{pragma diagnostic pop could not pop, no matching push}}
OpenPOWER on IntegriCloud