(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
concepts/
fn6.C
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts-ts" }

// Redefinition errors.

template<typename T>
  concept bool C() { return __is_class(T); }

template<typename T>
  concept bool D() { return C<T>() and __is_empty(T); }

template<C T> void f(T x) { }
template<typename T>
  requires C<T>()
    void f(T x) { } // { dg-error "redefinition" }

int main() { }