[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / sequences / deque / deque.cons / initializer_list.pass.cpp
blobbf7bc4bd90acc9c2aa11211d41b8cea1533fb6bf
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 "asan_testing.h"
16 #include <deque>
17 #include <cassert>
19 #include "test_macros.h"
20 #include "min_allocator.h"
22 int main(int, char**)
25 std::deque<int> d = {3, 4, 5, 6};
26 assert(d.size() == 4);
27 assert(d[0] == 3);
28 assert(d[1] == 4);
29 assert(d[2] == 5);
30 assert(d[3] == 6);
31 LIBCPP_ASSERT(is_double_ended_contiguous_container_asan_correct(d));
34 std::deque<int, min_allocator<int>> d = {3, 4, 5, 6};
35 assert(d.size() == 4);
36 assert(d[0] == 3);
37 assert(d[1] == 4);
38 assert(d[2] == 5);
39 assert(d[3] == 6);
40 LIBCPP_ASSERT(is_double_ended_contiguous_container_asan_correct(d));
43 return 0;