summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-10-08 01:19:49 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-10-08 01:19:49 +0000
commitdac86fd24c563640486b46ab73ea1d809f73b177 (patch)
treef2aa310ee9430e7774ff83e0373797dd1ce08638 /clang/test/Sema
parent1d202a6bae9cc64c508ead8cb59b37908b0e616a (diff)
downloadbcm5719-llvm-dac86fd24c563640486b46ab73ea1d809f73b177.tar.gz
bcm5719-llvm-dac86fd24c563640486b46ab73ea1d809f73b177.zip
Use a single note diagnostic for all the precedent/parentheses warnings.
llvm-svn: 165384
Diffstat (limited to 'clang/test/Sema')
-rw-r--r--clang/test/Sema/parentheses.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Sema/parentheses.c b/clang/test/Sema/parentheses.c
index 9751336018b..c3b3aa77c5e 100644
--- a/clang/test/Sema/parentheses.c
+++ b/clang/test/Sema/parentheses.c
@@ -13,13 +13,13 @@ void if_assign(void) {
void bitwise_rel(unsigned i) {
(void)(i & 0x2 == 0); // expected-warning {{& has lower precedence than ==}} \
// expected-note{{place parentheses around the & expression to evaluate it first}} \
- // expected-note{{place parentheses around the == expression to silence this warning}}
+ // expected-note{{place parentheses around the '==' expression to silence this warning}}
(void)(0 == i & 0x2); // expected-warning {{& has lower precedence than ==}} \
// expected-note{{place parentheses around the & expression to evaluate it first}} \
- // expected-note{{place parentheses around the == expression to silence this warning}}
+ // expected-note{{place parentheses around the '==' expression to silence this warning}}
(void)(i & 0xff < 30); // expected-warning {{& has lower precedence than <}} \
// expected-note{{place parentheses around the & expression to evaluate it first}} \
- // expected-note{{place parentheses around the < expression to silence this warning}}
+ // expected-note{{place parentheses around the '<' expression to silence this warning}}
(void)((i & 0x2) == 0);
(void)(i & (0x2 == 0));
// Eager logical op
OpenPOWER on IntegriCloud