From 93230ac1d2cf32419ce88fdd850f92a02bec5553 Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Sat, 1 Jan 2022 21:53:37 -0800 Subject: [PATCH] [libcxx][test] Use bool allocators for vector::get_allocator test ... to be consistent with other `get_allocator` tests, and to avoid requiring `vector>` to be valid. --- .../containers/sequences/vector.bool/get_allocator.pass.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcxx/test/std/containers/sequences/vector.bool/get_allocator.pass.cpp b/libcxx/test/std/containers/sequences/vector.bool/get_allocator.pass.cpp index 566d1f81bafc..f518b4601eef 100644 --- a/libcxx/test/std/containers/sequences/vector.bool/get_allocator.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector.bool/get_allocator.pass.cpp @@ -20,13 +20,13 @@ int main(int, char**) { { - std::allocator alloc; + std::allocator alloc; const std::vector vb(alloc); assert(vb.get_allocator() == alloc); } { - other_allocator alloc(1); - const std::vector > vb(alloc); + other_allocator alloc(1); + const std::vector > vb(alloc); assert(vb.get_allocator() == alloc); }