Fortran: checking of pointer targets for structure constructors [PR56423]
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-template9.C
blobc1d010ba128388ec539c03e64179d6a3ad5b5f9c
1 // PR c++/54276
2 // { dg-do link { target c++11 } }
4 template <typename T>
5 void foo(T)
7   static int x = 1;
8   auto f = [] { return x + 1; };
9   f();
12 int main()
14   foo(4);