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-init.C] - Rev 826
Compare with Previous | Blame | View Log
// Test for the explicit initializer extension
// { dg-options "-std=c++0x" }
int main()
{
int j = [i = 2]{sizeof(i); return i;}();
return (j != 2);
}