1// { dg-do assemble } 2// Origin: Martin v. L�wis <loewis@informatik.hu-berlin.de> 3// Test that a friend declaration with an explicit :: finds the right fn. 4 5namespace M { 6class S; 7} 8void foo(M::S *); 9 10namespace M { 11class S { 12 friend void (::foo)(S *); 13 void Fn(); 14 static S s; 15}; 16} 17 18void (foo)(M::S *ptr) { 19 M::S::s.Fn(); 20 ptr->Fn(); 21} 22