From: rsandifo Date: Mon, 24 Sep 2001 09:17:06 +0000 (+0000) Subject: Removed, since DR209 patch was reverted on this branch. X-Git-Tag: upstream/4.9.2~91950 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b0482457ab0d358ac6170e765f6700b63ca49a0;p=platform%2Fupstream%2Flinaro-gcc.git Removed, since DR209 patch was reverted on this branch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45771 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/g++.old-deja/g++.other/friend12.C b/gcc/testsuite/g++.old-deja/g++.other/friend12.C deleted file mode 100644 index df767b3..0000000 --- a/gcc/testsuite/g++.old-deja/g++.other/friend12.C +++ /dev/null @@ -1,71 +0,0 @@ -// Build don't link: - -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 1 Mar 2001 - -// DR 209. friend access is not checked. - -class Z; -class A -{ - class Inner {}; // ERROR - private - Inner f (Inner); - public: - A (); - friend class Z; -}; - -class B -{ - A::Inner j (); // ERROR - private - A::Inner k (); // ERROR - private - friend A::Inner A::f (Inner); - int t; - friend class A::Inner; -}; - -A::Inner l (); // ERROR - private -A::Inner m (); // ERROR - private -A::Inner a, // ERROR - private - b; // ERROR - private -A::Inner a1; // ERROR - private -int b2; - -A::Inner A::f (Inner) -{ - B b; - b.t = 1; - return A::Inner (); -} - -void Foo () -{ - A::Inner i; // ERROR - private - class Local - { - friend A::Inner A::f (Inner); - A::Inner k; // ERROR - private - }; - class Local1 : A::Inner - { // ERROR - private - - }; - A::Inner k; // ERROR - private -} - -class X : A::Inner -{ // ERROR - private - class I : A::Inner - { // ERROR - private - - }; -}; - -class Z : A::Inner -{ // ERROR - private - class I : A::Inner - { // ok, the base A::Inner is in the scope of Z which is a friend of A - - }; -}; -int b4;