summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-10-13 21:06:03 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-10-13 21:06:03 +0000
commit6ecac730193dd55ab76b2ea1b42471749e942d0d (patch)
tree2d5fef44145689dcd9fb7738ceebca1754aa74a8 /libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
parentf80c1875a3b18ed668542daa5375c459f7bf9a03 (diff)
downloadbcm5719-llvm-6ecac730193dd55ab76b2ea1b42471749e942d0d.tar.gz
bcm5719-llvm-6ecac730193dd55ab76b2ea1b42471749e942d0d.zip
Implement http://wg21.link/p0302r1: Removing Allocator Support in std::function. These functions never worked, and as far as I know, no one ever called them.
llvm-svn: 284164
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
index bc8ab873b0a..5bdf9e98e89 100644
--- a/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03
+// REQUIRES-ANY: c++11, c++14
// <functional>
@@ -16,6 +17,8 @@
#include <functional>
#include <type_traits>
+#include "test_macros.h"
+
using Fn = std::function<void()>;
struct S : public std::function<void()> { using function::function; };
OpenPOWER on IntegriCloud