blob: 3cf9d03e741a4bb8f8e7bd8617f761a70f3207be [file] [log] [blame]
// Testcase from P0170R1
// { dg-do compile { target c++17 } }
constexpr int AddEleven(int n){
return[n]{return n+11;}();
}
static_assert(AddEleven(5)==16,"");