diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2010-08-20 19:36:46 +0000 | 
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2010-08-20 19:36:46 +0000 | 
| commit | 9b0b6d45d2a0c41bccd96cb53dc6796e1ee680a3 (patch) | |
| tree | a44ac3f843dc580c13ff8f7623836cf3e9a1562a /libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_nullptr.pass.cpp | |
| parent | 74f26b81880da1165ddac8c4b899b68b65d1d44e (diff) | |
| download | bcm5719-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_nullptr.pass.cpp')
| -rw-r--r-- | libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_nullptr.pass.cpp | 5 | 
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_nullptr.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_nullptr.pass.cpp index 048b7f6bd5c..f69a9c615e1 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_nullptr.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_nullptr.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&, nullptr_t); not implemented +    std::function<int(int)> f(std::allocator_arg, test_allocator<int>(), nullptr); +    assert(!f);  } | 

