]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/friend7.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / friend7.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/friend7.C b/gcc/testsuite/g++.old-deja/g++.other/friend7.C
deleted file mode 100644 (file)
index 02b67cc..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// Origin: Martin v. Löwis  <loewis@informatik.hu-berlin.de>
-// Test that a friend declaration with an explicit :: finds the right fn.
-// Build don't link:
-
-namespace M {
-class S; 
-}
-void foo(M::S *);
-
-namespace M {
-class S {
-  friend void (::foo)(S *);
-  void Fn(); 
-  static S s;
-};
-} 
-
-void (::foo)(M::S *ptr) {
-  M::S::s.Fn();
-  ptr->Fn();
-}