| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// PR c++/90532 |
| 3 |
static_assert( !__is_constructible(int[]), "" ); |
| 4 |
static_assert( !__is_constructible(int[], int), "" ); |
| 5 |
static_assert( !__is_constructible(int[], int[]), "" ); |
| 6 |
static_assert( !__is_trivially_constructible(int[]), "" ); |
| 7 |
static_assert( !__is_trivially_constructible(int[], int), "" ); |
| 8 |
static_assert( !__is_trivially_constructible(int[], int[]), "" ); |
| 9 |
static_assert( !__is_trivially_constructible(int[], int(&)[]), "" ); |
| 10 |
static_assert( !__is_trivially_constructible(int[], void), "" ); |
| 11 |
struct A { }; |
| 12 |
static_assert( !__is_constructible(A[]), "" ); |
| 13 |
static_assert( !__is_constructible(A[], const A&), "" ); |
| 14 |
static_assert( !__is_constructible(A[], const A[]), "" ); |
| 15 |
static_assert( !__is_trivially_constructible(A[]), "" ); |
| 16 |
static_assert( !__is_trivially_constructible(A[], const A&), "" ); |
| 17 |
static_assert( !__is_trivially_constructible(A[], const A[]), "" ); |
| 18 |
static_assert( !__is_trivially_constructible(A[], A(&)[]), "" ); |
| 19 |
static_assert( !__is_trivially_constructible(A[], void), "" ); |
| 20 |
struct B { B(); }; |
| 21 |
static_assert( !__is_constructible(B[]), "" ); |
| 22 |
static_assert( !__is_constructible(B[], const B&), "" ); |
| 23 |
static_assert( !__is_trivially_constructible(B[]), "" ); |
| 24 |
static_assert( !__is_trivially_constructible(B[], const B&), "" ); |
| 25 |
static_assert( !__is_trivially_constructible(B[], const B[]), "" ); |
| 26 |
static_assert( !__is_trivially_constructible(B[], B(&)[]), "" ); |
| 27 |
static_assert( !__is_trivially_constructible(B[], void), "" ); |