FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.dg / other / friend1.C
blob3193180ca3ea108f4d8c41fec60edcf4daac6a8f
1 // { dg-do compile }
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Oct 2001 <nathan@codesourcery.com>
6 // Bug 4476. We tangled up inline friends and pure virtuals during
7 // class definition.
9 struct A {
10   friend void f () { }
11   void g (A a) {  }