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-conv2.C] - Rev 826
Compare with Previous | Blame | View Log
// Test for conversion from stateless lambda to function pointer.
// { dg-options -std=c++0x }
// { dg-do run }
typedef int (*pfn)(int);
int main()
{
pfn p = [](int i) { return i-42; };
return p (42);
}