summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec2.C
blob: 99f83cba6cf630813ba340b56fad588631a1bc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile { target c++20 } }

template<typename T>
  concept C = __is_class(T);

struct X { };

template<C T> struct S;
template<> struct S<X> { void f() { } };

int main() {
  S<X> x; x.f();
}