2 // { dg-options "-std=c++17 -fconcepts" }
7 concept bool C() { return __is_class(T); }
10 concept bool D() { return C<T>() && __is_empty(T); }
13 struct Y { int n; } y;
15 template<typename T> void g(T) { } // #1
16 template<C T> void g(T) { } // #2
17 template<D T> void g(T) { } // #3
21 template<> void g(int) { called = 1; } // Specialization of #1
22 template<> void g<X>(X) { called = 2; } // Specialization of #3
23 template<> void g(Y) { called = 3; } // Specialization of #2