2013-03-25 20:29:35 +01:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <vector>
|
|
|
|
|
2013-03-25 21:03:19 +01:00
|
|
|
// Compare iterators from different containers with == or !=.
|
2013-03-25 20:29:35 +01:00
|
|
|
|
|
|
|
#if _LIBCPP_DEBUG2 >= 1
|
|
|
|
|
2013-03-26 15:28:25 +01:00
|
|
|
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
|
2013-03-25 20:29:35 +01:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <cassert>
|
|
|
|
#include <iterator>
|
|
|
|
#include <exception>
|
|
|
|
#include <cstdlib>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
typedef int T;
|
|
|
|
typedef std::vector<T> C;
|
|
|
|
C c1;
|
|
|
|
C c2;
|
|
|
|
bool b = c1.begin() != c2.begin();
|
|
|
|
assert(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-03-25 21:03:19 +01:00
|
|
|
#endif
|