Debian Codegraph @

gcc/testsuite/g++.dg/ext/is_trivially_constructible2.C

raw
1 // { dg-do compile { target c++11 } }
2
3 struct X {
4 X() = default;
5 template<class... U> X(U...);
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_trivially_constructible(X));
15 SA(!__is_trivially_constructible(Y));