☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda9.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/constexpr-lambda9.C
code
plain
raw
1
// Testcase from P0170R1
2
// { dg-do compile { target c++17 } }
3
4
static_assert([](int n) { return [&n] { return ++n; }(); }(3) == 4);