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 //===----------------------------------------------------------------------===//
13 // vector(initializer_list<value_type> il);
18 #include "test_macros.h"
19 #include "min_allocator.h"
24 std::vector
<bool> d
= {true, false, false, true};
25 assert(d
.size() == 4);
27 assert(d
[1] == false);
28 assert(d
[2] == false);
32 std::vector
<bool, min_allocator
<bool>> d
= {true, false, false, true};
33 assert(d
.size() == 4);
35 assert(d
[1] == false);
36 assert(d
[2] == false);