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.
36 lines
802 B
C++
36 lines
802 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// <deque>
|
|
|
|
// deque()
|
|
// deque::iterator()
|
|
|
|
// MODULES_DEFINES: _LIBCPP_ABI_INCOMPLETE_TYPES_IN_DEQUE
|
|
#define _LIBCPP_ABI_INCOMPLETE_TYPES_IN_DEQUE
|
|
#include <deque>
|
|
#include <cassert>
|
|
|
|
#include "test_macros.h"
|
|
|
|
struct A {
|
|
std::deque<A> d;
|
|
std::deque<A>::iterator it;
|
|
std::deque<A>::reverse_iterator it2;
|
|
};
|
|
|
|
int main(int, char**)
|
|
{
|
|
A a;
|
|
assert(a.d.size() == 0);
|
|
a.it = a.d.begin();
|
|
a.it2 = a.d.rend();
|
|
|
|
return 0;
|
|
}
|