blob: 9c84db621563915cabbd1104e0aac8680203e435 [file] [log] [blame]
// 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;
}