Make lambda conversion op and op() non-static.
[official-gcc/constexpr.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-conv.C
blobacd7da0b6d8c265748063da6badf88b364cf12e1
1 // Test for conversion from stateless lambda to function pointer.
3 // { dg-options -std=c++0x }
4 // { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } }
6 inline void f()
8   void (*pfn)() = []{};
11 int main()
13   f();