summaryrefslogtreecommitdiffstats
path: root/libcxx/test/containers/sequences
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-02-05 01:44:17 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-02-05 01:44:17 +0000
commit09df4a667574ab0dc6f4d116025c48987d7baf26 (patch)
tree88503710cbf6da367a74d40ab9ee31297c42d648 /libcxx/test/containers/sequences
parent5fe0f6588e9b103bc66193943df4ca1e51fc836e (diff)
downloadbcm5719-llvm-09df4a667574ab0dc6f4d116025c48987d7baf26.tar.gz
bcm5719-llvm-09df4a667574ab0dc6f4d116025c48987d7baf26.zip
Support forward_list<Incomplete Type>. Patch by Zhihao Yuan!
llvm-svn: 200814
Diffstat (limited to 'libcxx/test/containers/sequences')
-rw-r--r--libcxx/test/containers/sequences/forwardlist/forwardlist.cons/default_recursive.pass.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/default_recursive.pass.cpp b/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/default_recursive.pass.cpp
new file mode 100644
index 00000000000..5ff00e6fe52
--- /dev/null
+++ b/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/default_recursive.pass.cpp
@@ -0,0 +1,25 @@
+//===----------------------------------------------------------------------===//
+//
+// 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.
+//
+//===----------------------------------------------------------------------===//
+
+// <forward_list>
+
+// class forward_list
+
+// forward_list();
+
+#include <forward_list>
+
+struct X
+{
+ std::forward_list<X> q;
+};
+
+int main()
+{
+}
OpenPOWER on IntegriCloud