2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / friend9.C
blobdb9a248f7380ad3525da84c8784ee9954654745f
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Nov 2000 <nathan@codesourcery.com>
6 // Bug 853: We reported the wrong line no for a friend access violation
8 class F
10   class Internal;   // { dg-error "" } is private
13 class C
15   friend class F::Internal; // { dg-error "" } in this context
16   public:
17   typedef enum { A, B } e;
19   C ();
20   ~C();
22   void m();