Debian Codegraph @

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

raw
1 // PR c++/101043
2 // { dg-do compile { target c++20 } }
3
4 template<class T>
5 void f(T t) {
6 [&](auto) noexcept(requires { t.g(); }) { }(0);
7 }
8
9 int main() {
10 f(0);
11 }