From e8fe34d4d1383fa5ba7cfe4ae4324b276450eb24 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 22 Sep 2015 18:09:13 +0000 Subject: 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. llvm-svn: 248307 --- libcxx/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libcxx/test/std/utilities/utility') diff --git a/libcxx/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp b/libcxx/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp index 2e72f3543eb..0ad5786bce2 100644 --- a/libcxx/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp +++ b/libcxx/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp @@ -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; } }; -- cgit v1.2.3