aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/static-operator-call3.C
blob: 9c84db621563915cabbd1104e0aac8680203e435 (plain)
1
2
3
4
5
6
7
8
9
10
// 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;
}