diff options
Diffstat (limited to 'test/libcxx/containers/sequences/list/db_iterators_6.pass.cpp')
-rw-r--r-- | test/libcxx/containers/sequences/list/db_iterators_6.pass.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/test/libcxx/containers/sequences/list/db_iterators_6.pass.cpp b/test/libcxx/containers/sequences/list/db_iterators_6.pass.cpp deleted file mode 100644 index 3f0fd015e9a4..000000000000 --- a/test/libcxx/containers/sequences/list/db_iterators_6.pass.cpp +++ /dev/null @@ -1,33 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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> - -// Decrement iterator prior to begin. - -#define _LIBCPP_DEBUG 1 -#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) - -#include <list> -#include <cassert> -#include <iterator> -#include <exception> -#include <cstdlib> - -int main() -{ - typedef int T; - typedef std::list<T> C; - C c(1); - C::iterator i = c.end(); - --i; - assert(i == c.begin()); - --i; - assert(false); -} |