]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/friend11.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / friend11.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/friend11.C b/gcc/testsuite/g++.old-deja/g++.pt/friend11.C
deleted file mode 100644 (file)
index 1aeba3a..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-template <class T>
-class C;
-
-template <class T>
-struct S
-{
-  template <class U>
-  void f(U u)
-    {
-      C<U> cu;
-      cu.i = 3; // ERROR - S<double>::f<U> is a friend, but this is
-                //         S<int>::f<double>. 
-    }
-};
-
-
-template <class T>
-class C
-{
-  template <class U>
-  friend void S<T>::f(U);
-
-  int i; // ERROR - private
-};
-
-
-int main()
-{
-  S<int> si;
-  si.f(3.0);
-}