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-ns-scope.C] - Rev 816
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options -std=c++0x }
// { dg-do run }
auto f = [](int i) { return i+1; };
int g(int i = [] { return 237; }())
{
return i;
}
int main()
{
if (f(41) != 42)
return 1;
if (g() != 237)
return 2;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log