You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func
Volodymyr Sapsai db0ba4480a [libcxx] func.wrap.func.con: Unset function before destroying anything
Be defensive against a reentrant std::function::operator=(nullptr_t), in case
the held function object has a non-trivial destructor.  Destroying the function
object in-place can lead to the destructor being called twice.

Patch by Duncan P. N. Exon Smith. C++03 support by Volodymyr Sapsai.

rdar://problem/32836603

Reviewers: EricWF, mclow.lists

Reviewed By: mclow.lists

Subscribers: cfe-commits, arphaman

Differential Revision: https://reviews.llvm.org/D34331


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@330885 91177308-0d34-0410-b5e6-96231b3b80d8
8 years ago
..
func.wrap.func.alg Add tests to check that swap(std::function, std::function) is noexcept. This is LWG#2062, but we already do this. No changes to the library, just adding tests. 9 years ago
func.wrap.func.cap Move test into test/std subdirectory. 11 years ago
func.wrap.func.con [libcxx] func.wrap.func.con: Unset function before destroying anything 8 years ago
func.wrap.func.inv Cleanup tests that fail in C++1z and with Clang 3.8 10 years ago
func.wrap.func.mod Fix PR31489 - std::function self-swap segfaults 9 years ago
func.wrap.func.nullptr Move test into test/std subdirectory. 11 years ago
func.wrap.func.targ Implement LWG 2591 - Patch from K-Ballo 9 years ago
derive_from.fail.cpp 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. 9 years ago
derive_from.pass.cpp [libcxx] [test] Update for C++17 feature removals. 8 years ago
function_types.h Add missing license headers 10 years ago
types.pass.cpp Remove trailing whitespace in test suite. Approved by Marshall Clow. 10 years ago