summaryrefslogtreecommitdiffstats
path: root/test/containers/sequences/deque/deque.cons/op_equal_initializer_list.pass.cpp
blob: 7d29ba56d02c7600dfe5d36416853dfde7f40214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <deque>

// deque& operator=(initializer_list<value_type> il);

#include <deque>
#include <cassert>

int main()
{
#ifdef _LIBCPP_MOVE
    std::deque<int> d;
    d = {3, 4, 5, 6};
    assert(d.size() == 4);
    assert(d[0] == 3);
    assert(d[1] == 4);
    assert(d[2] == 5);
    assert(d[3] == 6);
#endif
}