From bf94e482163f9dcc6b004f2cec71b62c75cac2f6 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 22 Sep 2015 18:09:13 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248307 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp b/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp index 2e72f354..0ad5786b 100644 --- a/test/std/utilities/utility/pairs/pairs.pair/swap.pass.cpp +++ b/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; } };