Debian Codegraph @

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

raw
1 // PR c++/96647
2 // { dg-do compile { target c++20 } }
3
4 template<typename T>
5 struct Base {
6 auto f(int) { }
7 auto f(int) requires T::fail { static_assert(T::fail); }
8 };
9
10 void (Base<void>::*ptr)(int) = &Base<void>::f;