blob: adfb4d45fc81d5294cde6ee5679348345f0b9099 [file] [log] [blame]
Eric Fiselierbb2f28e2015-08-23 02:56:05 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// <list>
11
12// Check that std::list and it's iterators can be instantiated with an incomplete
13// type.
14
15#include <list>
16
17struct A {
18 std::list<A> l;
19 std::list<A>::iterator it;
20 std::list<A>::const_iterator cit;
21 std::list<A>::reverse_iterator rit;
22 std::list<A>::const_reverse_iterator crit;
23};
24
25int main() {
26 A a;
27}