llvm-project/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con
Eric Fiselier 0d28f78401 [libcxx] Fix PR23589: std::function doesn't recognize null pointer to varargs function.
Summary:
This patch fixes __not_null's detection of nullptr by breaking it down into 4 cases.

1. `__not_null(Tp const&)`: Default case. Tp is not null.
2. `__not_null(Tp* __ptr);` Case for pointers to functions.
3. `__not_null(_Ret _Class::* __ptr);` Case for pointers to members.
4. `__not_null(function<Tp> const&);`: Cases for other std::functions.

Reviewers: mclow.lists

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D11111

llvm-svn: 245335
2015-08-18 19:41:51 +00:00
..
F.pass.cpp Cleanup tests that fail in C++1z and with Clang 3.8 2015-07-17 22:27:43 +00:00
F_assign.pass.cpp [libcxx] Fix PR 22468 - std::function<void()> does not accept non-void-returning functions 2015-02-10 16:48:45 +00:00
F_incomplete.pass.cpp
F_nullptr.pass.cpp [libcxx] Fix PR23589: std::function doesn't recognize null pointer to varargs function. 2015-08-18 19:41:51 +00:00
alloc.pass.cpp [libc++] Fix PR22922 - Allocator support for std::function does not know how to rebind. 2015-03-18 22:56:50 +00:00
alloc_F.pass.cpp Fix std::function allocator constructors in C++03. 2015-06-14 23:30:09 +00:00
alloc_function.pass.cpp Fix std::function allocator constructors in C++03. 2015-06-14 23:30:09 +00:00
alloc_nullptr.pass.cpp [libc++] Fix PR22922 - Allocator support for std::function does not know how to rebind. 2015-03-18 22:56:50 +00:00
alloc_rfunction.pass.cpp [libc++] Fix PR22922 - Allocator support for std::function does not know how to rebind. 2015-03-18 22:56:50 +00:00
copy.pass.cpp
copy_assign.pass.cpp
default.pass.cpp
nullptr_t.pass.cpp
nullptr_t_assign.pass.cpp