1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03
12 // Can't test the system lib because this test enables debug mode
13 // UNSUPPORTED: with_system_cxx_lib
19 #define _LIBCPP_DEBUG 1
20 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(1))
26 #include "test_allocator.h"
27 #include "min_allocator.h"
31 std::list<int> l1 = {1, 2, 3};
32 std::list<int>::iterator i = l1.begin();
33 std::list<int> l2 = std::move(l1);
34 assert(*l2.erase(i) == 2);