llvm-project/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con
Volodymyr Sapsai aa208791bb [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

llvm-svn: 330885
2018-04-25 23:38:41 +00:00
..
F.pass.cpp Implement LWG 2393. Check for LValue-callability. 2016-07-24 04:16:40 +00:00
F_assign.pass.cpp Implement LWG 2393. Check for LValue-callability. 2016-07-24 04:16:40 +00:00
F_incomplete.pass.cpp Fix PR34298 - Allow std::function with an incomplete return type. 2017-09-10 23:41:20 +00:00
F_nullptr.pass.cpp Update all bug URL's to point to https://bugs.llvm.org/... 2017-02-17 08:37:03 +00:00
alloc.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. 2016-10-13 21:06:03 +00:00
alloc.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 09:11:08 +00:00
alloc_F.fail.cpp [libcxx] [test] Untabify, NFC. 2017-07-29 00:55:10 +00:00
alloc_F.pass.cpp [libcxx] [test] In func.wrap.func.con/alloc_F.pass.cpp, fix REQUIRES whitespace. NFC. 2017-07-29 00:55:25 +00:00
alloc_function.fail.cpp [libcxx] [test] Untabify, NFC. 2017-07-29 00:55:10 +00:00
alloc_function.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 09:11:08 +00:00
alloc_nullptr.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. 2016-10-13 21:06:03 +00:00
alloc_nullptr.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 09:11:08 +00:00
alloc_rfunction.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. 2016-10-13 21:06:03 +00:00
alloc_rfunction.pass.cpp Remove all usages of REQUIRES-ANY in the test suite. 2017-01-24 09:11:08 +00:00
copy_assign.pass.cpp [libcxx][test] Silence -Wself-assign diagnostics 2018-04-07 10:36:03 +00:00
copy_move.pass.cpp func.wrap.func.con: Fix test comment 2017-06-18 15:34:47 +00:00
default.pass.cpp
move_reentrant.pass.cpp [libcxx] func.wrap.func.con: Unset function before destroying anything 2018-04-25 23:38:41 +00:00
nullptr_t.pass.cpp
nullptr_t_assign.pass.cpp
nullptr_t_assign_reentrant.pass.cpp [libcxx] func.wrap.func.con: Unset function before destroying anything 2018-04-25 23:38:41 +00:00