llvm-project/libcxx/test/std/utilities/function.objects
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
..
arithmetic.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
bind Update all bug URL's to point to https://bugs.llvm.org/... 2017-02-17 08:37:03 +00:00
bitwise.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
comparisons Un-XFAIL a test under new GCC version; the GCC bug has been fixed 2018-03-22 19:18:08 +00:00
func.def
func.invoke [libcxx] [test] Make files consistently end with newlines, NFC. 2017-07-29 00:55:22 +00:00
func.memfn Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00
func.not_fn [libcxx] [test] Improve MSVC portability. 2018-01-10 00:39:46 +00:00
func.require [libcxx] [test] Update for C++17 feature removals. 2017-08-24 21:24:08 +00:00
func.search Apparently 'C++14' is different than 'c++14' 2018-01-08 22:16:30 +00:00
func.wrap [libcxx] func.wrap.func.con: Unset function before destroying anything 2018-04-25 23:38:41 +00:00
logical.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
negators In C++03, a bunch of the arithmetic/logical/comparison functors (such as negate/bit_not.pass/logical_not) were defined as deriving from unary_funtion. That restriction was removed in C++11, but the tests still check for this. Change the test to look for the embedded types first_argument/second_argument/result_type. No change to the library, just more standards-compliant tests. Thanks to STL @ Microsoft for the suggestion. 2015-01-07 21:51:30 +00:00
refwrap [libcxx] [test] Update for C++17 feature removals. 2017-08-24 21:24:08 +00:00
unord.hash [libcxx] P0604, invoke_result and is_invocable 2017-12-12 18:42:04 +00:00