summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/i-c-e.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/i-c-e.c')
-rw-r--r--clang/test/Sema/i-c-e.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/i-c-e.c b/clang/test/Sema/i-c-e.c
index 1aac51e204f..9b50916f85f 100644
--- a/clang/test/Sema/i-c-e.c
+++ b/clang/test/Sema/i-c-e.c
@@ -53,7 +53,8 @@ char z[__builtin_constant_p(4) ? 1 : -1];
// Comma tests
int comma1[0?1,2:3]; // expected-warning {{expression result unused}}
int comma2[1||(1,2)]; // expected-warning {{expression result unused}} \
- // expected-warning {{use of logical || with constant operand}}
+ // expected-warning {{use of logical '||' with constant operand}} \
+ // expected-note {{use '|' for a bitwise operation}}
int comma3[(1,2)]; // expected-warning {{size of static array must be an integer constant expression}} \
// expected-warning {{expression result unused}}
OpenPOWER on IntegriCloud