1 // { dg-do compile } 2 3 // Copyright (C) 2001 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 10 Oct 2001 <nathan@codesourcery.com> 5 6 // Bug 4476. We tangled up inline friends and pure virtuals during 7 // class definition. 8 9 struct A { 10 friend void f () { } 11 void g (A a) { } 12 }; 13