summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/memory
diff options
context:
space:
mode:
authorCasey Carter <Casey@Carter.net>2017-05-26 01:00:56 +0000
committerCasey Carter <Casey@Carter.net>2017-05-26 01:00:56 +0000
commitf611d873a32d979f0d292a5f040d531e3b53d754 (patch)
tree4b33c1de6c2c1be246ba6cef16b14dd2636f6d4e /libcxx/test/std/utilities/memory
parent398d73601c0b1a72a2706cc035675af36a2ef49a (diff)
downloadbcm5719-llvm-f611d873a32d979f0d292a5f040d531e3b53d754.tar.gz
bcm5719-llvm-f611d873a32d979f0d292a5f040d531e3b53d754.zip
[test] Fix breakage from r303947 =(
llvm-svn: 303951
Diffstat (limited to 'libcxx/test/std/utilities/memory')
-rw-r--r--libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp6
1 files 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 0fd086341e7..f8f73f77135 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<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()
{
OpenPOWER on IntegriCloud