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

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();
}