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
i386: Add GENERIC and GIMPLE folders of __builtin_ia32_{min,max}* [PR116738]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
friend2.C
blob
7264bd3b8e59896ea01d2b7f6206b3d3e6644032
1
// { dg-do assemble }
2
// PRMS Id: 5189
3
// Bug: g++ fails to collapse the several declarations of freefoo, so it isn't
4
// recognized as a friend.
5
6
extern "C"
7
void freefoo(void);
8
9
class foo {
10
friend void freefoo(void);
11
protected:
12
static void foomem();
13
public:
14
foo();
15
~foo();
16
};
17
18
void freefoo(void)
19
{
20
foo::foomem();
21
}