From f611d873a32d979f0d292a5f040d531e3b53d754 Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Fri, 26 May 2017 01:00:56 +0000 Subject: [PATCH] [test] Fix breakage from r303947 =( llvm-svn: 303951 --- .../util.smartptr.shared.create/make_shared.pass.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp index 0fd086341e7d..f8f73f771356 100644 --- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp +++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp @@ -45,6 +45,7 @@ struct Foo virtual ~Foo() = default; }; +#ifdef _LIBCPP_VERSION struct Result {}; static Result theFunction() { return Result(); } static int resultDeletorCount; @@ -54,14 +55,15 @@ static void resultDeletor(Result (*pf)()) { } void test_pointer_to_function() { -#ifdef _LIBCPP_VER { // https://bugs.llvm.org/show_bug.cgi?id=27566 std::shared_ptr x(&theFunction, &resultDeletor); std::shared_ptr y(theFunction, resultDeletor); } assert(resultDeletorCount == 2); -#endif } +#else // _LIBCPP_VERSION +void test_pointer_to_function() {} +#endif // _LIBCPP_VERSION int main() {