[libcxx] r248307 - The test I cnecked in to check the fix for PR#24890 failed (as expected) w/o the fix, but for the wrong reason. Now it fails for the right reason.
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 22 11:09:13 PDT 2015
Author: marshall
Date: Tue Sep 22 13:09:13 2015
New Revision: 248307
URL: http://llvm.org/viewvc/llvm-project?rev=248307&view=rev
Log:
The test I cnecked in to check the fix for PR#24890 failed (as expected) w/o the fix, but for the wrong reason. Now it fails for the right reason.
Modified:
libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp
Modified: libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp?rev=248307&r1=248306&r2=248307&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp Tue Sep 22 13:09:13 2015
@@ -20,6 +20,7 @@ struct S {
int i;
S() : i(0) {}
S(int j) : i(j) {}
+ S * operator& () { assert(false); return this; }
S const * operator& () const { assert(false); return this; }
bool operator==(int x) const { return i == x; }
};
More information about the cfe-commits
mailing list