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
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
..
arithmetic.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 8 years ago
bind Update all bug URL's to point to https://bugs.llvm.org/... 9 years ago
bitwise.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 8 years ago
comparisons Un-XFAIL a test under new GCC version; the GCC bug has been fixed 8 years ago
func.def Move test into test/std subdirectory. 11 years ago
func.invoke [libcxx] [test] Make files consistently end with newlines, NFC. 8 years ago
func.memfn Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
func.not_fn [libcxx] [test] Improve MSVC portability. 8 years ago
func.require [libcxx] [test] Update for C++17 feature removals. 8 years ago
func.search Apparently 'C++14' is different than 'c++14' 8 years ago
func.wrap [libcxx] func.wrap.func.con: Unset function before destroying anything 8 years ago
logical.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 8 years ago
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. 11 years ago
refwrap [libcxx] [test] Update for C++17 feature removals. 8 years ago
unord.hash [libcxx] P0604, invoke_result and is_invocable 8 years ago