Added test for incomplete type support in vector/list/forward_list. References PR#17980

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@227131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2015-01-26 20:06:52 +00:00
parent bfad86e967
commit a1bca66d28
3 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,8 @@
#include "min_allocator.h"
struct A { std::forward_list<A> v; }; // incomplete type support
int main()
{
{

View File

@ -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), "");

View File

@ -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()