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 // Can't test the system lib because this test enables debug mode
11 // UNSUPPORTED: with_system_cxx_lib
17 #define _LIBCPP_DEBUG 1
18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
27 std::list<int> c(a, a+3);
29 assert(c == std::list<int>(a, a+2));
31 assert(c == std::list<int>(a, a+1));
34 c.pop_back(); // operation under test