aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-requires37.C
blob: fa4095ed494f0ef1b6a7a68e325ccb20aeffd1a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/101043
// { dg-do compile { target c++20 } }

template<class T>
void f(T t) {
  [&](auto) noexcept(requires { t.g(); }) { }(0);
}

int main() {
  f(0);
}