]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/friend3.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / friend3.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/friend3.C b/gcc/testsuite/g++.old-deja/g++.pt/friend3.C
deleted file mode 100644 (file)
index 74d0e06..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-
-template <class T>
-void f(T);
-
-class C
-{
-  friend void f<>(double);
-
-  int i; // ERROR - private
-};
-
-
-template <class T>
-void f(T)
-{
-  C c;
-  c.i = 3; // ERROR - f<double> is a friend, this is f<int>.
-}
-
-
-int main()
-{
-  f(7);
-}