diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/parentheses.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/parentheses.cpp b/test/Sema/parentheses.cpp index d0dcdda0bf..8f5f24652d 100644 --- a/test/Sema/parentheses.cpp +++ b/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}} } |