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

llvm-svn: 227131
This commit is contained in:
Marshall Clow 2015-01-26 20:06:52 +00:00
parent 3da5b126a5
commit 00f792e19e
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()