Make lambda conversion op and op() non-static.
[official-gcc/constexpr.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-conv3.C
blobe4e7daffdd5e88d21209fafb116ccfd1432cbd01
1 // Conversion to a function pointer uses a generic thunk, which doesn't
2 // work properly for variadics.  Make sure that we can still use the lambda
3 // normally.
5 // { dg-options -std=c++0x }
7 void f()
9   auto l = [](...){};
10   void (*p1)(...) = l;          // { dg-bogus "sorry" "" { xfail *-*-* } }
11   l();                          // OK