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
Tom Stellard 1496b0e710 Merging r312892:
------------------------------------------------------------------------
r312892 | ericwf | 2017-09-10 16:41:20 -0700 (Sun, 10 Sep 2017) | 10 lines

Fix PR34298 - Allow std::function with an incomplete return type.

This patch fixes llvm.org/PR34298. Previously libc++ incorrectly evaluated
the __invokable trait via the converting constructor `function(Tp)` [with Tp = std::function]
whenever the copy constructor or copy assignment operator
was required. This patch further constrains that constructor to short
circut before evaluating the troublesome SFINAE when `Tp` matches
std::function.

The original patch is from Alex Lorenz.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/branches/release_50@318835 91177308-0d34-0410-b5e6-96231b3b80d8
8 years ago
..
allocator.adaptor [libcxx] [test] Strip trailing whitespace. NFC. 9 years ago
any Add markup for libc++ dylib availability 9 years ago
function.objects Merging r312892: 8 years ago
intseq [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 9 years ago
memory Fix test failure to to new/delete ellisions 8 years ago
meta Cleanup test issues reported by STL @ Microsoft. 9 years ago
optional optional: Implement LWG 2900 and P0602 8 years ago
ratio Move remaining _LIBCPP_VERSION tests into test/libcxx 10 years ago
smartptr/unique.ptr [test] Silence another unused-typedef warning 9 years ago
template.bitset Fix or move tests with non-standard assumptions 9 years ago
time Add markup for libc++ dylib availability 9 years ago
tuple [libcxx] [test] Fix -Wmismatched-tags in tuple_size_structured_bindings.pass.cpp. 9 years ago
type.index Fix recent build errors 9 years ago
utilities.general Move test into test/std subdirectory. 11 years ago
utility Added failing tests for index out of range for tuple_element<pair<T1,T2>> and variant_alternative<> 8 years ago
utility.requirements Move test into test/std subdirectory. 11 years ago
variant Merging r309296 and r309307: 8 years ago
nothing_to_do.pass.cpp Move test into test/std subdirectory. 11 years ago