PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / is_trivially_constructible2.C
blob4e0a657eaff00ea8abbe899acd26a62fa7473ffb
1 // { dg-do compile { target c++11 } }
3 struct X {
4   X() = default;
5   template<class... U> X(U...);
6 };
8 struct Y {
9   template<class... U> Y(U...);
12 #define SA(X) static_assert((X),#X)
14 SA(__is_trivially_constructible(X));
15 SA(!__is_trivially_constructible(Y));