forked from OSchip/llvm-project
Added test for incomplete type support in vector/list/forward_list. References PR#17980
llvm-svn: 227131
This commit is contained in:
parent
3da5b126a5
commit
00f792e19e
|
@ -30,6 +30,8 @@
|
|||
|
||||
#include "min_allocator.h"
|
||||
|
||||
struct A { std::forward_list<A> v; }; // incomplete type support
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
|
|
@ -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), "");
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue