blob: 13d8221d1c952a1dd65a136649f4a1733b31df6c [file] [log] [blame]
// { 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);
}