blob: adfb4d45fc81d5294cde6ee5679348345f0b9099 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//===----------------------------------------------------------------------===//
//
// 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>
// Check that std::list and it's iterators can be instantiated with an incomplete
// type.
#include <list>
struct A {
std::list<A> l;
std::list<A>::iterator it;
std::list<A>::const_iterator cit;
std::list<A>::reverse_iterator rit;
std::list<A>::const_reverse_iterator crit;
};
int main() {
A a;
}
|