1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 // void shrink_to_fit();
17 #include "test_macros.h"
18 #include "min_allocator.h"
20 TEST_CONSTEXPR_CXX20
bool tests()
23 std::vector
<bool> v(100);
26 assert(v
.capacity() >= 101);
27 assert(v
.size() >= 101);
29 #if TEST_STD_VER >= 11
31 std::vector
<bool, min_allocator
<bool>> v(100);
34 assert(v
.capacity() >= 101);
35 assert(v
.size() >= 101);
46 static_assert(tests());