llvm-project/libcxx/test/std/utilities
Dan Albert 19fd9039ca Fix _LIBCPP_HAS_ definitions for Android.
Summary:
Android added quick_exit()/at_quick_exit() in API level 21,
aligned_alloc() in API level 28, and timespec_get() in API level 29,
but has the other C11 features at all API levels (since they're basically
just coming from clang directly).

_LIBCPP_HAS_QUICK_EXIT and _LIBCPP_HAS_TIMESPEC_GET already existed,
so we can reuse them. (And use _LIBCPP_HAS_TIMESPEC_GET in a few more
places where _LIBCPP_HAS_C11_FEATURES has been used as a proxy. This
isn't correct for Android.)

_LIBCPP_HAS_ALIGNED_ALLOC is added, to cover aligned_alloc() (obviously).

Add a missing std:: before aligned_alloc in a cstdlib test, and remove a
couple of !defined(_WIN32)s now that we're explicitly testing
TEST_HAS_ALIGNED_ALLOC rather than TEST_HAS_C11_FEATURES.

Reviewers: danalbert, EricWF, mclow.lists

Reviewed By: danalbert

Subscribers: srhines, christof, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D69929
2019-11-18 12:19:58 -08:00
..
allocator.adaptor libcxx: Rename .hpp files in libcxx/test/support to .h 2019-08-21 00:14:12 +00:00
any libcxx: Rename .hpp files in libcxx/test/support to .h 2019-08-21 00:14:12 +00:00
charconv [libc++] Fix leading zeros in std::to_chars 2019-06-10 17:11:46 +00:00
function.objects [libc++] Purge mentions of GCC 4 from the test suite 2019-09-25 19:40:48 +00:00
intseq Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
memory [libc++] Take 2: Implement LWG 2510 2019-09-26 14:51:10 +00:00
meta [libc++] Add test and remove workaround for PR13592 2019-10-30 15:52:11 -07:00
optional [libcxx][NFC] Strip trailing whitespace, fix typo. 2019-10-23 11:49:43 -07:00
ratio Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
smartptr/unique.ptr [NFC] Strip trailing whitespace from libc++ 2019-10-23 11:19:19 -07:00
template.bitset libcxx: Rename .hpp files in libcxx/test/support to .h 2019-08-21 00:14:12 +00:00
time Fix _LIBCPP_HAS_ definitions for Android. 2019-11-18 12:19:58 -08:00
tuple PR43764: Qualify a couple of calls to forward_as_tuple to be ADL-resilient. 2019-10-28 18:04:41 -07:00
type.index libcxx: Rename .hpp files in libcxx/test/support to .h 2019-08-21 00:14:12 +00:00
utilities.general Support tests in freestanding 2019-02-04 20:31:13 +00:00
utility [libc++][NFC] Remove excess trailing newlines from most files 2019-10-23 08:08:57 -07:00
utility.requirements Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant [libc++][test] Silence more warnings in variant tests 2019-10-14 14:38:12 +00:00
nothing_to_do.pass.cpp Support tests in freestanding 2019-02-04 20:31:13 +00:00