llvm-project/libcxx/test/std/utilities
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
..
allocator.adaptor [libcxx] [test] Fix line endings, avoid unnecessary non-ASCII. 2017-12-13 00:51:31 +00:00
any [libcxx][test] Silence -Wself-assign diagnostics 2018-04-07 10:36:03 +00:00
function.objects [libcxx] func.wrap.func.con: Unset function before destroying anything 2018-04-25 23:38:41 +00:00
intseq [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 2016-11-04 20:26:59 +00:00
memory avoid new/delete ellision in construct.pass.cpp 2018-03-25 03:00:42 +00:00
meta [libcxx] [test] Fix whitespace, NFC. 2018-04-12 23:56:22 +00:00
optional Tolerate [[nodiscard]] annotations in the STL. Reviewed as https://reviews.llvm.org/D39033 2017-11-15 07:40:37 +00:00
ratio Move remaining _LIBCPP_VERSION tests into test/libcxx 2016-06-22 02:23:22 +00:00
smartptr/unique.ptr Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065 2017-11-21 21:37:26 +00:00
template.bitset [libcxx] [test] Fix MSVC warnings, null pointer deref. 2017-12-13 00:51:27 +00:00
time [libcxx] [test] Rename _Tp to T. NFCI. 2017-08-11 20:53:53 +00:00
tuple [libcxx] [test] Fix MSVC warnings and errors. 2018-02-26 20:47:46 +00:00
type.index Fix recent build errors 2017-01-21 00:57:29 +00:00
utilities.general
utility [libcxx] [test] Avoid MSVC truncation warnings. 2018-04-12 23:56:07 +00:00
utility.requirements
variant Workaround GCC bug PR78489 - SFINAE order is not respected. 2018-03-22 22:32:55 +00:00
nothing_to_do.pass.cpp