blob: c9fa63d1bf5cb22ef65b2bd282b78fefa0e5f1ae [file] [log] [blame]
// { dg-do compile { target c++17 } }
auto addOne = [] (int n) {
return n + 1;
};
constexpr int (*addOneFp)(int) = addOne;
static_assert(addOneFp(3) == addOne(3), "");