Author: caseycarter Date: Thu May 25 20:00:56 2017 New Revision: 303951 URL: http://llvm.org/viewvc/llvm-project?rev=303951&view=rev Log: [test] Fix breakage from r303947 =(
Modified: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp Modified: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp?rev=303951&r1=303950&r2=303951&view=diff ============================================================================== --- libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp (original) +++ libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp Thu May 25 20:00:56 2017 @@ -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<Result()> x(&theFunction, &resultDeletor); std::shared_ptr<Result()> y(theFunction, resultDeletor); } assert(resultDeletorCount == 2); -#endif } +#else // _LIBCPP_VERSION +void test_pointer_to_function() {} +#endif // _LIBCPP_VERSION int main() { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits