URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [friend2.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed friends
class X {
int a;
friend void friend_set (X*, int);
};
void friend_set (X *p, int i) { p->a = i; }
void f()
{
X obj;
friend_set (&obj, 10);
}
Go to most recent revision | Compare with Previous | Blame | View Log