aboutsummaryrefslogtreecommitdiff
path: root/test/libcxx/containers/sequences/list/list.modifiers/insert_iter_value_db1.pass.cpp
blob: 9a13520b98eb2536068e8bee72714ab6d54c5b4e (plain) (blame)
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
29
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <list>

// iterator insert(const_iterator position, const value_type& x);

#define _LIBCPP_DEBUG 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

#include <list>
#include <cstdlib>
#include <cassert>


int main()
{
    std::list<int> v1(3);
    std::list<int> v2(3);
    int i = 4;
    v1.insert(v2.begin(), i);
    assert(false);
}