[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / containers / sequences / deque / deque.cons / initializer_list.pass.cpp
blob3d6414063cd7d7d30ebc7355dd6be1c87dff96b9
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 // UNSUPPORTED: c++03
11 // <deque>
13 // deque(initializer_list<value_type> il);
15 #include <deque>
16 #include <cassert>
18 #include "test_macros.h"
19 #include "min_allocator.h"
21 int main(int, char**)
24 std::deque<int> d = {3, 4, 5, 6};
25 assert(d.size() == 4);
26 assert(d[0] == 3);
27 assert(d[1] == 4);
28 assert(d[2] == 5);
29 assert(d[3] == 6);
32 std::deque<int, min_allocator<int>> d = {3, 4, 5, 6};
33 assert(d.size() == 4);
34 assert(d[0] == 3);
35 assert(d[1] == 4);
36 assert(d[2] == 5);
37 assert(d[3] == 6);
40 return 0;