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:
parent
bfad86e967
commit
a1bca66d28
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
|
||||||
|
struct A { std::forward_list<A> v; }; // incomplete type support
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
|
||||||
|
struct A { std::list<A> v; }; // incomplete type support
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
static_assert((std::is_same<std::list<int>::value_type, int>::value), "");
|
static_assert((std::is_same<std::list<int>::value_type, int>::value), "");
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
#include "../../Copyable.h"
|
#include "../../Copyable.h"
|
||||||
#include "min_allocator.h"
|
#include "min_allocator.h"
|
||||||
|
|
||||||
|
struct A { std::vector<A> v; }; // incomplete type support
|
||||||
|
|
||||||
template <class T, class Allocator>
|
template <class T, class Allocator>
|
||||||
void
|
void
|
||||||
test()
|
test()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user