2 // { dg-do compile { target c++20 } }
4 template<bool B> struct bool_constant { static constexpr bool value = B; };
7 struct is_implicitly_default_constructible
8 : bool_constant<requires { T(); }>
11 struct X { private: X(); };
14 static_assert( !is_implicitly_default_constructible<X>::value );
15 static_assert( is_implicitly_default_constructible<Y>::value );