//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // Call back() on empty container. #define _LIBCPP_DEBUG 1 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) #include #include #include #include #include int main() { typedef int T; typedef std::list C; C c(1); assert(c.back() == 0); c.clear(); assert(c.back() == 0); assert(false); }