summaryrefslogtreecommitdiffstats
path: root/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-08-20 19:36:46 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-08-20 19:36:46 +0000
commit9b0b6d45d2a0c41bccd96cb53dc6796e1ee680a3 (patch)
treea44ac3f843dc580c13ff8f7623836cf3e9a1562a /libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp
parent74f26b81880da1165ddac8c4b899b68b65d1d44e (diff)
downloadbcm5719-llvm-9b0b6d45d2a0c41bccd96cb53dc6796e1ee680a3.tar.gz
bcm5719-llvm-9b0b6d45d2a0c41bccd96cb53dc6796e1ee680a3.zip
Installed allocator into std::function
llvm-svn: 111672
Diffstat (limited to 'libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp')
-rw-r--r--libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp
index c6628718576..fa65aae85cd 100644
--- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp
+++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp
@@ -16,7 +16,10 @@
#include <functional>
#include <cassert>
+#include "../test_allocator.h"
+
int main()
{
-#error template<class A> function(allocator_arg_t, const A&); not implemented
+ std::function<int(int)> f(std::allocator_arg, test_allocator<int>());
+ assert(!f);
}
OpenPOWER on IntegriCloud