Debian Codegraph @

gcc/testsuite/g++.dg/concepts/fn6.C

raw
1 // { dg-do compile { target c++17 } }
2 // { dg-options "-fconcepts" }
3
4 // Redefinition errors.
5
6 template<typename T>
7 concept C = __is_class(T);
8
9 template<typename T>
10 concept D = C<T> and __is_empty(T);
11
12 template<C T> void f(T x) { }
13 template<typename T>
14 requires C<T>
15 void f(T x) { }
16
17 int main() { }