summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-04-22 19:16:27 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-04-22 19:16:27 +0000
commitad8b4d402e8a1edb2475098c0289784d7bd2d348 (patch)
tree12b9214decf3cb6704b11e5055bd7f1338799f95 /clang/test
parent57c892860efee1d10f9b134951d61387ef3ff9ca (diff)
downloadbcm5719-llvm-ad8b4d402e8a1edb2475098c0289784d7bd2d348.tar.gz
bcm5719-llvm-ad8b4d402e8a1edb2475098c0289784d7bd2d348.zip
For -Wlogical-op-parentheses, point at '&&', not '||'. Fixes rdar://9125333.
llvm-svn: 130009
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/parentheses.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/parentheses.c b/clang/test/Sema/parentheses.c
index b45d8512f6b..a25ded66a66 100644
--- a/clang/test/Sema/parentheses.c
+++ b/clang/test/Sema/parentheses.c
@@ -26,7 +26,8 @@ void bitwise_rel(unsigned i) {
(void)(i == 1 | i == 2 | i == 3);
(void)(i != 1 & i != 2 & i != 3);
- (void)(i || i && i); // expected-warning {{'&&' within '||'}} \
+ (void)(i ||
+ i && i); // expected-warning {{'&&' within '||'}} \
// expected-note {{place parentheses around the '&&' expression to silence this warning}}
(void)(i || i && "w00t"); // no warning.
(void)("w00t" && i || i); // no warning.
OpenPOWER on IntegriCloud