OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
friend.C
1
// Bug: g++ doesn't keep track of the lexical context of friends properly.
2
3
extern "C" void exit(int);
4
5
struct B;
6
struct A {
7
static void f () { exit (1); }
8
};
9
10
struct B {
11
static void f () { exit (0); }
12
friend void g () { f (); }
13
};
14
15
main ()
16
{
17
g ();
18
}