diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-10-19 08:08:02 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-10-19 08:08:02 +0000 |
commit | 79cf161f178e36ce6d8aeea2a247e367b8d0fc34 (patch) | |
tree | 9de408940ba275d478c14d06ae9752660c98e769 /test/SemaCXX/warn-assignment-condition.cpp | |
parent | 460e7a25da073a1cc2bec995bde66877f30ca4f5 (diff) |
Revert r166268, this fix for a crash-on-invalid introduced a rejects-valid.
Richard has an unreduced testcase to work with.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/warn-assignment-condition.cpp')
-rw-r--r-- | test/SemaCXX/warn-assignment-condition.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaCXX/warn-assignment-condition.cpp b/test/SemaCXX/warn-assignment-condition.cpp index 09084e36bb..04f2e79525 100644 --- a/test/SemaCXX/warn-assignment-condition.cpp +++ b/test/SemaCXX/warn-assignment-condition.cpp @@ -133,14 +133,14 @@ void test2() { namespace rdar9027658 { template <typename T> -void f(T t) { - if ((t.g == 3)) { } // expected-warning {{equality comparison with extraneous parentheses}} \ +void f() { + if ((T::g == 3)) { } // expected-warning {{equality comparison with extraneous parentheses}} \ // expected-note {{use '=' to turn this equality comparison into an assignment}} \ // expected-note {{remove extraneous parentheses around the comparison to silence this warning}} } struct S { int g; }; void test() { - f(S()); // expected-note {{in instantiation}} + f<S>(); // expected-note {{in instantiation}} } } |