FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / friend.C
blob4c517cbeee4c03a83e5bfbd761df5d966463d879
1 // Bug: g++ doesn't keep track of the lexical context of friends properly.
3 extern "C" void exit(int);
5 struct B;
6 struct A {
7   static void f () { exit (1); }
8 };
10 struct B {
11   static void f () { exit (0); }
12   friend void g () { f (); }
15 int main ()
17   g ();