gcc/gcc/testsuite/g++.dg/concepts/explicit-spec2.C

14 lines
223 B
C

// { dg-options "-std=c++17 -fconcepts" }
template<typename T>
concept bool C() { return __is_class(T); }
struct X { };
template<C T> struct S;
template<> struct S<X> { void f() { } };
int main() {
S<X> x; x.f();
}