blob: 13d8221d1c952a1dd65a136649f4a1733b31df6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { 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);
}
|