]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/template/friend.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / template / friend.C
diff --git a/gcc/testsuite/g++.dg/template/friend.C b/gcc/testsuite/g++.dg/template/friend.C
deleted file mode 100644 (file)
index 59564ad..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// Contribued by Gabriel Dos Reis <gdr@codesourcery.com>
-// Origin: iskey@i100.ryd.student.liu.se
-// { dg-do link }
-
-#include <iostream>
-using namespace std;
-
-template <class T> struct s;
-
-template <class T>
-ostream& operator<<(ostream &o, const typename s<T>::t &x)
-{
-  return o;
-}
-
-template <class T>
-struct s {
-  struct t
-  {
-    friend ostream&
-    operator<<<T>(ostream&, const typename s<T>::t &);
-  };
-  t x;
-};
-
-int main()
-{
-  s<int>::t y;
-  cout << y;
-}