[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / explicit-spec3.C
blob1edc83e95a88cef29889e35721e77bbf9c903faa
1 // { dg-options "-std=c++17 -fconcepts" }
3 template<typename T>
4   concept bool C() { return __is_class(T); }
6 template<C T> struct S;
8 struct X { };
10 // Not a valid explicit specialization, int does not satisfy C.
11 template<> struct S<int> { }; // { dg-error "constraint" }
13 int main() { }