1 // { dg-options "-std=c++17 -fconcepts" }
4 concept bool C() { return __is_class(T); }
7 concept bool D() { return C<T>() && __is_empty(T); }
12 template<typename T> struct S { void f1() { } }; // #1
13 template<C T> struct S<T> { void f2() { } }; // #2
14 template<D T> struct S<T> { void f3() { } }; // #3
16 template struct S<int>; // Instantiate #1
17 template struct S<X>; // Instantiate #2
18 template struct S<Y>; // Instantiate #2