Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.jason / friend.C
blob9bcc81488b59a4b7573e90d23468f9d3645afb08
1 // { dg-do run  }
2 // Bug: g++ doesn't keep track of the lexical context of friends properly.
4 extern "C" void exit(int);
6 struct B;
7 struct A {
8   static void f () { exit (1); }
9 };
11 struct B {
12   static void f () { exit (0); }
13   friend void g (B) { f (); }
16 int main ()
18   B b;
19   g (b);