Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda5.C
blob: c9fa63d1bf5cb22ef65b2bd282b78fefa0e5f1ae [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
auto
addOne
=
[]
(
int
n
)
{
return
n
+
1
;
};
constexpr
int
(*
addOneFp
)(
int
)
=
addOne
;
static_assert
(
addOneFp
(
3
)
==
addOne
(
3
),
""
);