blob: c1d010ba128388ec539c03e64179d6a3ad5b5f9c [file] [log] [blame]
// PR c++/54276
// { dg-do link { target c++11 } }
template <typename T>
void foo(T)
{
static int x = 1;
auto f = [] { return x + 1; };
f();
}
int main()
{
foo(4);
}