blob: 15f15b468754d3e881a8542dc3ae918d67426b27 [file] [log] [blame]
// PR c++/89158
// { dg-do compile { target c++11 } }
struct T { T(const int&); };
void Func(T);
void test()
{
constexpr int Val = 42;
[Val]() { Func(Val); };
}