summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/parentheses.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-10-19 18:26:06 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-10-19 18:26:06 +0000
commit82d3ab922580a2f56ac8d4a5bb389775005c2825 (patch)
tree17fa47ba0cbae50ffaecafc36df7ff85dba8dfb3 /clang/test/Sema/parentheses.cpp
parent468ea4eb9d5a498af916c27d28e741d6f24a6d26 (diff)
downloadbcm5719-llvm-82d3ab922580a2f56ac8d4a5bb389775005c2825.tar.gz
bcm5719-llvm-82d3ab922580a2f56ac8d4a5bb389775005c2825.zip
Clarify wording of -Wshift-op-parentheses.
Suggestion from Matt Beaumont-Gay reviewing r165283. llvm-svn: 166296
Diffstat (limited to 'clang/test/Sema/parentheses.cpp')
-rw-r--r--clang/test/Sema/parentheses.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Sema/parentheses.cpp b/clang/test/Sema/parentheses.cpp
index d0dcdda0bf3..8f5f24652dd 100644
--- a/clang/test/Sema/parentheses.cpp
+++ b/clang/test/Sema/parentheses.cpp
@@ -49,11 +49,11 @@ void test(S *s, bool (S::*m_ptr)()) {
}
void test(int a, int b, int c) {
- (void)(a >> b + c); // expected-warning {{'+' within '>>'}} \
+ (void)(a >> b + c); // expected-warning {{operator '>>' has lower precedence than '+'; '+' will be evaluated first}} \
expected-note {{place parentheses around the '+' expression to silence this warning}}
- (void)(a - b << c); // expected-warning {{'-' within '<<'}} \
+ (void)(a - b << c); // expected-warning {{operator '<<' has lower precedence than '-'; '-' will be evaluated first}} \
expected-note {{place parentheses around the '-' expression to silence this warning}}
Stream() << b + c;
- Stream() >> b + c; // expected-warning {{'+' within '>>'}} \
+ Stream() >> b + c; // expected-warning {{operator '>>' has lower precedence than '+'; '+' will be evaluated first}} \
expected-note {{place parentheses around the '+' expression to silence this warning}}
}
OpenPOWER on IntegriCloud