URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [lambda/] [lambda-conv.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
// Test for conversion from stateless lambda to function pointer.
// { dg-options -std=c++0x }
// { dg-final { scan-assembler "weak\[^\n\r\]*_?_ZZ1fvENKUlvE_cvPFvvEEv" { target { ! { *-*-darwin* *-*-mingw* *-*-cygwin } } } } }
inline void f()
{
void (*pfn)() = []{};
}
int main()
{
f();
}
Go to most recent revision | Compare with Previous | Blame | View Log