URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [lambda/] [lambda-ns-scope.C] - Rev 516
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;
}