(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1z/
constexpr-lambda1.C
// { dg-do compile { target c++17 } }

constexpr auto Add5 = [](int i) { return i+5; };

constexpr int x = Add5(4);
static_assert(x==9);