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 | 2e3b7169595c02fd62cf4348772c3d2d68db17e3 (patch) | |
tree | eb438d78e63359c727e981aefc99be4b9541f5e3 /clang/test/SemaCXX/warn-assignment-condition.cpp | |
parent | e0fc42580b026d1845b52174a3749b7686ea709d (diff) | |
download | bcm5719-llvm-2e3b7169595c02fd62cf4348772c3d2d68db17e3.tar.gz bcm5719-llvm-2e3b7169595c02fd62cf4348772c3d2d68db17e3.zip |
Revert r166268, this fix for a crash-on-invalid introduced a rejects-valid.
Richard has an unreduced testcase to work with.
llvm-svn: 166272
Diffstat (limited to 'clang/test/SemaCXX/warn-assignment-condition.cpp')
-rw-r--r-- | clang/test/SemaCXX/warn-assignment-condition.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/warn-assignment-condition.cpp b/clang/test/SemaCXX/warn-assignment-condition.cpp index 09084e36bb4..04f2e795254 100644 --- a/clang/test/SemaCXX/warn-assignment-condition.cpp +++ b/clang/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}} } } |