| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
|
| 3 |
struct X { |
| 4 |
X() = default; |
| 5 |
template<class... U> X(U...) noexcept; |
| 6 |
}; |
| 7 |
|
| 8 |
struct Y { |
| 9 |
template<class... U> Y(U...); |
| 10 |
}; |
| 11 |
|
| 12 |
#define SA(X) static_assert((X),#X) |
| 13 |
|
| 14 |
SA(__is_nothrow_constructible(X)); |
| 15 |
SA(!__is_nothrow_constructible(Y)); |