[libcxx] r201349 - Add a test to make sure that vector supports incomplete types

Marshall Clow mclow.lists at gmail.com
Thu Feb 13 09:56:12 PST 2014


Author: marshall
Date: Thu Feb 13 11:56:12 2014
New Revision: 201349

URL: http://llvm.org/viewvc/llvm-project?rev=201349&view=rev
Log:
Add a test to make sure that vector supports incomplete types

Added:
    libcxx/trunk/test/containers/sequences/vector/vector.cons/default.recursive.pass.cpp

Added: libcxx/trunk/test/containers/sequences/vector/vector.cons/default.recursive.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/sequences/vector/vector.cons/default.recursive.pass.cpp?rev=201349&view=auto
==============================================================================
--- libcxx/trunk/test/containers/sequences/vector/vector.cons/default.recursive.pass.cpp (added)
+++ libcxx/trunk/test/containers/sequences/vector/vector.cons/default.recursive.pass.cpp Thu Feb 13 11:56:12 2014
@@ -0,0 +1,23 @@
+//===----------------------------------------------------------------------===//
+//
+//                     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.
+//
+//===----------------------------------------------------------------------===//
+
+// <vector>
+// class vector
+// vector();
+
+#include <vector>
+
+struct X
+{
+    std::vector<X> q;
+};
+
+int main()
+{
+}





More information about the cfe-commits mailing list