blob: 08d8bbfc200f51504f8cd2e4b6ba04f49a3db704 [file] [log] [blame]
// Test for conversion from stateless lambda to function pointer.
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin *-*-hpux10* } } } } }
inline void f()
{
void (*pfn)() = []{};
}
int main()
{
f();
}