You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
739 B
C++
33 lines
739 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// <deque>
|
|
|
|
// deque()
|
|
// deque::iterator()
|
|
|
|
// MODULES_DEFINES: _LIBCPP_ABI_INCOMPLETE_TYPES_IN_DEQUE
|
|
#define _LIBCPP_ABI_INCOMPLETE_TYPES_IN_DEQUE
|
|
#include <deque>
|
|
#include <cassert>
|
|
|
|
struct A {
|
|
std::deque<A> d;
|
|
std::deque<A>::iterator it;
|
|
std::deque<A>::reverse_iterator it2;
|
|
};
|
|
|
|
int main()
|
|
{
|
|
A a;
|
|
assert(a.d.size() == 0);
|
|
a.it = a.d.begin();
|
|
a.it2 = a.d.rend();
|
|
}
|