☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda1.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/constexpr-lambda1.C
code
plain
raw
1
// { dg-do compile { target c++17 } }
2
3
constexpr auto Add5 = [](int i) { return i+5; };
4
5
constexpr int x = Add5(4);
6
static_assert(x==9);