]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/friend10.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / friend10.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/friend10.C b/gcc/testsuite/g++.old-deja/g++.other/friend10.C
deleted file mode 100644 (file)
index 75b52cb..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// Build don't link:
-// Origin: Neil Booth, from PR #78
-
-namespace MySpace
- {
-   class Tag1 { };
-   class Tag2 { };
-
-   template<class Tag>
-   class Object
-   {
-   public:
-
-     friend void Forgotten(Object const & m) {}
-   };
-
-   typedef Object<Tag1> U1;
-   typedef Object<Tag2> U2;
-
-   void foo()
-   {
-     Forgotten(U1());
-     Forgotten(U2());
-   }
-
-   void bar()
-   {
-     Forgotten(U1());
-   }
- }