diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/friend.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/friend.C | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/friend.C b/gcc/testsuite/g++.old-deja/g++.jason/friend.C index ee6ee8d5eae..fca7aa3a92f 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/friend.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/friend.C @@ -1,18 +1 @@ -// Bug: g++ doesn't keep track of the lexical context of friends properly. - -extern "C" void exit(int); - -struct B; -struct A { - static void f () { exit (1); } -}; - -struct B { - static void f () { exit (0); } - friend void g () { f (); } -}; - -main () -{ - g (); -} +int main () |