Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend8.C
blob: e9992cdadf41924a215394be75784f66f3c0e57b [
file
] [
log
] [
blame
]
// Test that we look up a friend declared at top level ahead of an
// undeclared friend found by argument dependent lookup.
// { dg-do run }
int
f
(
int
)
{
return
0
;
}
struct
S
{
friend
int
f
(
char
)
{
return
1
;
}
};
int
main
()
{
return
f
(
'a'
);
}