Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
friend2.C
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
);
}