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++.brendan/] [sorry1.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed old-sorry
class a {
public:
int* foo();
};
a aa;
a* ap;
class b {
public:
int ok(int* p =aa.foo());
// dump_init should know what to do with this NON_LVALUE_EXPR
int f(int* p =ap->foo());
};
int
b::ok(int *p)
{
return 0;
}
int
b::f(int *p)
{
return 0;
}
void
bar()
{
b b;
b.ok();
b.f();
}
Go to most recent revision | Compare with Previous | Blame | View Log