aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/is_nothrow_constructible2.C
blob: 86b9668da6eadd77bf30c74387730783d4f2d365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++11 } }

struct X {
  X() = default;
  template<class... U> X(U...) noexcept;
};

struct Y {
  template<class... U> Y(U...);
};

#define SA(X) static_assert((X),#X)

SA(__is_nothrow_constructible(X));
SA(!__is_nothrow_constructible(Y));