]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/template/friend4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / template / friend4.C
diff --git a/gcc/testsuite/g++.dg/template/friend4.C b/gcc/testsuite/g++.dg/template/friend4.C
deleted file mode 100644 (file)
index 9cd3810..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-// { dg-do compile }
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 18 Dec 2001 <nathan@codesourcery.com>
-
-// PR 109, dependant member friends
-
-struct B
-{
-  static int foo ();
-  struct N
-  {
-    static int bar ();
-  };
-};
-
-
-template <class T>
-class A
-{
-  friend int T::foo ();
-  friend int T::N::bar ();
-  
-  private:
-  static int m;
-};
-
-template <class T>
-class C
-{
-  friend struct T::N;
-
-  private:
-  static int m;
-};
-
-
-int B::foo ()
-{
-  return A<B>::m;
-}
-
-int B::N::bar ()
-{
-  return A<B>::m + C<B>::m;
-}