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;
19 void f() { called = 0; } // #1
20 void f() requires C<T>() { called = 0; } // #2
22 void g() requires C<T>() { } // #1
23 void g() requires D<T>() { } // #2
26 template<> void S<int>::f() { called = 1; } // Spec of #1
27 template<> void S<X>::f() { called = 2; } // Spec of #2
29 template<> void S<X>::g() { called = 3; } // Spec of #2
30 template<> void S<Y>::g() { called = 4; } // Spec of #1