* MAINTAINERS: Add a note that maintainership also includes web
[official-gcc.git] / gcc / testsuite / g++.dg / other / friend6.C
blob851cd25237ab01e42802d8bc9bc0ac40c2347bba
1 // PR c++/27100
2 // This used to fail at link time with an "undefined reference to 'foo'" error.
3 // { dg-do run }
5 struct A
7   friend void foo (const A&) { }
8   friend void foo (const A&);
9 };
11 int
12 main ()
14   foo (A ());