gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv3.C
raw| 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. |
| 4 | |
| 5 | // { dg-do compile { target c++11 } } |
| 6 | |
| 7 | void f() |
| 8 | { |
| 9 | auto l = [](...){}; |
| 10 | void (*p1)(...) = l; // { dg-bogus "sorry" "" { xfail *-*-* } } |
| 11 | l(); // OK |
| 12 | } |