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 //===----------------------------------------------------------------------===//
16 #include "test_macros.h"
17 #include "test_allocator.h"
18 #include "min_allocator.h"
26 assert(c
.size() == 1);
28 assert(c
.size() == 0);
31 #if TEST_STD_VER >= 11
33 std::vector
<int, min_allocator
<int>> c
;
35 assert(c
.size() == 1);
37 assert(c
.size() == 0);
42 int arr
[] = {0, 1, 2, 3, 4};
44 std::vector
<int> c(arr
, arr
+sz
);
45 while (c
.size() < c
.capacity())
47 c
.push_back(c
.front());
48 assert(c
.back() == 0);
49 for (int i
= 0; i
< sz
; ++i
)