Debian Codegraph @

gcc/testsuite/g++.dg/other/friend1.C

raw
1 // { dg-do compile }
2
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Oct 2001 <[email protected]>
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 };