[libcxx] r227131 - Added test for incomplete type support in vector/list/forward_list. References PR#17980

Marshall Clow mclow.lists at gmail.com
Mon Jan 26 12:06:53 PST 2015


Author: marshall
Date: Mon Jan 26 14:06:52 2015
New Revision: 227131

URL: http://llvm.org/viewvc/llvm-project?rev=227131&view=rev
Log:
Added test for incomplete type support in vector/list/forward_list. References PR#17980

Modified:
    libcxx/trunk/test/std/containers/sequences/forwardlist/types.pass.cpp
    libcxx/trunk/test/std/containers/sequences/list/types.pass.cpp
    libcxx/trunk/test/std/containers/sequences/vector/types.pass.cpp

Modified: libcxx/trunk/test/std/containers/sequences/forwardlist/types.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/forwardlist/types.pass.cpp?rev=227131&r1=227130&r2=227131&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/forwardlist/types.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/forwardlist/types.pass.cpp Mon Jan 26 14:06:52 2015
@@ -30,6 +30,8 @@
 
 #include "min_allocator.h"
 
+struct A { std::forward_list<A> v; }; // incomplete type support
+
 int main()
 {
     {

Modified: libcxx/trunk/test/std/containers/sequences/list/types.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/list/types.pass.cpp?rev=227131&r1=227130&r2=227131&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/list/types.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/list/types.pass.cpp Mon Jan 26 14:06:52 2015
@@ -27,6 +27,8 @@
 
 #include "min_allocator.h"
 
+struct A { std::list<A> v; }; // incomplete type support
+
 int main()
 {
     static_assert((std::is_same<std::list<int>::value_type, int>::value), "");

Modified: libcxx/trunk/test/std/containers/sequences/vector/types.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector/types.pass.cpp?rev=227131&r1=227130&r2=227131&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector/types.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector/types.pass.cpp Mon Jan 26 14:06:52 2015
@@ -37,6 +37,8 @@
 #include "../../Copyable.h"
 #include "min_allocator.h"
 
+struct A { std::vector<A> v; }; // incomplete type support
+
 template <class T, class Allocator>
 void
 test()





More information about the cfe-commits mailing list