URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [lookup6.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do run }
int f(int i)
{
struct C {
int i;
C () : i(1) {}
int f() {
struct D {
int i;
D () : i(2) {}
int g() { return i; }
} d;
return d.g();
}
} c;
return c.f();
}
int main()
{
if (f(0) != 2)
return 1;
}