diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
commit | 461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch) | |
tree | 6942083d7d56bba40ec790a453ca58ad3baf6832 /test/Parser/cxx0x-condition.cpp | |
parent | 75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff) |
Diffstat (limited to 'test/Parser/cxx0x-condition.cpp')
-rw-r--r-- | test/Parser/cxx0x-condition.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/cxx0x-condition.cpp b/test/Parser/cxx0x-condition.cpp index 071e09e4158f0..19d5a7395d417 100644 --- a/test/Parser/cxx0x-condition.cpp +++ b/test/Parser/cxx0x-condition.cpp @@ -14,11 +14,11 @@ void f() { for (; int x = ++a; ) ; if (S(a)) {} // ok - if (S(a) = 0) {} // ok + if (S(a) = 0) {} // expected-warning {{redundant parentheses}} expected-note 2{{}} if (S(a) == 0) {} // ok if (S(n)) {} // expected-error {{unexpected type name 'n': expected expression}} - if (S(n) = 0) {} // ok + if (S(n) = 0) {} // expected-warning {{redundant parentheses}} expected-note 2{{}} if (S(n) == 0) {} // expected-error {{unexpected type name 'n': expected expression}} if (S b(a)) {} // expected-error {{variable declaration in condition cannot have a parenthesized initializer}} |