repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* MAINTAINERS: Add a note that maintainership also includes web
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
friend6.C
blob
851cd25237ab01e42802d8bc9bc0ac40c2347bba
1
// PR c++/27100
2
// This used to fail at link time with an "undefined reference to 'foo'" error.
3
// { dg-do run }
4
5
struct A
6
{
7
friend void foo (const A&) { }
8
friend void foo (const A&);
9
};
10
11
int
12
main ()
13
{
14
foo (A ());
15
}