mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-23 20:09:41 +00:00
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"
|
||||
|
||||
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
Block a user