Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda1.C
blob: a2250a2e84560ec576c99fbfb783499afc5eb89e [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
constexpr
auto
Add5
=
[](
int
i
)
{
return
i
+
5
;
};
constexpr
int
x
=
Add5
(
4
);
static_assert
(
x
==
9
);