Sign in
gnu
/
gcc
/
4a0fed0c0c7241562eaa5f1a4c916b689429ad86
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
friend6.C
blob: 851cd25237ab01e42802d8bc9bc0ac40c2347bba [
file
] [
log
] [
blame
]
// PR c++/27100
// This used to fail at link time with an "undefined reference to 'foo'" error.
// { dg-do run }
struct
A
{
friend
void
foo
(
const
A
&)
{
}
friend
void
foo
(
const
A
&);
};
int
main
()
{
foo
(
A
());
}