Debian Codegraph @

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

raw
1 // { dg-do compile { target c++20 } }
2
3 template<typename T>
4 concept C = __is_class(T);
5
6 struct X { };
7
8 template<C T> struct S;
9 template<> struct S<X> { void f() { } };
10
11 int main() {
12 S<X> x; x.f();
13 }