Sign in
gnu
/
gcc
/
772d532e0ba1e4b22c2b7d576e14b34ee929c093
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp23
/
static-operator-call3.C
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
;
}