Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda9.C
blob: c4999c59acc9ee2e9dea1c508be6f01b95a0bad0 [
file
] [
log
] [
blame
]
// Testcase from P0170R1
// { dg-do compile { target c++17 } }
static_assert
([](
int
n
)
{
return
[&
n
]
{
return
++
n
;
}();
}(
3
)
==
4
);