// { dg-do assemble }// PRMS Id: 5189// Bug: g++ fails to collapse the several declarations of freefoo, so it isn't// recognized as a friend.extern"C"voidfreefoo(void);classfoo{friendvoidfreefoo(void);protected:staticvoidfoomem();public:foo();~foo();};voidfreefoo(void){foo::foomem();}