(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp23/
static-operator-call3.C
// P1169R4 - static operator()
// { dg-do compile { target c++14 } }
// { dg-options "" }

void
foo ()
{
  auto a = [] (auto x) static { return x; };					// { dg-warning "'static' only valid in lambda with" "" { target c++20_down } }
  int (*b) (int) = a;
}