[libc++] Make test_allocator constexpr-friendly for constexpr string/vector
authorNikolas Klauser <nikolasklauser@berlin.de>
Sun, 7 Nov 2021 15:11:24 +0000 (16:11 +0100)
committerMark de Wever <koraq@xs4all.nl>
Sun, 7 Nov 2021 15:15:28 +0000 (16:15 +0100)
commit9a140a1586cc4d13ecc97a28065f9ed2f93c99de
treec911b69bd7b3e4e663b9bd07972366a80ec57d4b
parentf057756a1ae2958af823d7e15869147c27f975fb
[libc++] Make test_allocator constexpr-friendly for constexpr string/vector

Make test_allocator etc. constexpr-friendly so they can be used to test constexpr string and possibly constexpr vector

Reviewed By: Quuxplusone, #libc, ldionne

Differential Revision: https://reviews.llvm.org/D110994
25 files changed:
libcxx/test/std/containers/associative/map/map.cons/assign_initializer_list.pass.cpp
libcxx/test/std/containers/associative/set/set.cons/assign_initializer_list.pass.cpp
libcxx/test/std/containers/container.requirements/container.requirements.general/allocator_move.pass.cpp
libcxx/test/std/containers/sequences/deque/deque.modifiers/push_back_exception_safety.pass.cpp
libcxx/test/std/containers/sequences/deque/deque.modifiers/push_front_exception_safety.pass.cpp
libcxx/test/std/containers/sequences/vector.bool/move.pass.cpp
libcxx/test/std/containers/sequences/vector/vector.cons/move.pass.cpp
libcxx/test/std/re/re.results/re.results.const/move.pass.cpp
libcxx/test/std/strings/basic.string/string.capacity/capacity.pass.cpp
libcxx/test/std/strings/basic.string/string.cons/move_alloc.pass.cpp
libcxx/test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp
libcxx/test/std/thread/futures/futures.promise/move_assign.pass.cpp
libcxx/test/std/thread/futures/futures.promise/move_ctor.pass.cpp
libcxx/test/std/thread/futures/futures.promise/swap.pass.cpp
libcxx/test/std/thread/futures/futures.shared_future/dtor.pass.cpp
libcxx/test/std/thread/futures/futures.task/futures.task.members/ctor_func_alloc.pass.cpp
libcxx/test/std/thread/futures/futures.unique_future/dtor.pass.cpp
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_allocator.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_allocator_throw.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_allocator.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_allocator_throw.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.mod/reset_pointer_deleter_allocator.pass.cpp
libcxx/test/support/test_allocator.h