Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-fn7.C

raw
1 // PR c++/95132
2 // { dg-do compile { target c++20 } }
3
4 template <class T> struct A {
5 static auto f() requires false { return T::fail; }
6 };
7
8 template <class T>
9 concept C = requires { A<T>::f(); };
10
11 static_assert(!C<int>);