[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / containers / sequences / vector.bool / shrink_to_fit.pass.cpp
blob7ec8e66fbea45f90652cabaf5bfa554bfff59e1d
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // <vector>
10 // vector<bool>
12 // void shrink_to_fit();
14 #include <vector>
15 #include <cassert>
17 #include "test_macros.h"
18 #include "min_allocator.h"
20 int main(int, char**)
23 std::vector<bool> v(100);
24 v.push_back(1);
25 v.shrink_to_fit();
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);
32 v.push_back(1);
33 v.shrink_to_fit();
34 assert(v.capacity() >= 101);
35 assert(v.size() >= 101);
37 #endif
39 return 0;