]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/inline14.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / inline14.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline14.C b/gcc/testsuite/g++.old-deja/g++.other/inline14.C
deleted file mode 100644 (file)
index 5a7ea4b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// Build don't link:
-// Origin: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
-#include <iostream>
-
-struct IDENT
-    {
-    enum TYPE { Variable, Constant } type;
-
-    std::ostream& printTo(std::ostream& out) const
-       {
-       switch (type)
-           {
-           case Variable:
-               out << '_';
-               break;
-           default:
-               break;
-           }
-       return out;
-       }
-    };
-
-
-template <class T>
-struct TC
-    {
-    IDENT i;
-
-    const IDENT& getIdent() const
-        {
-       return i;
-       }
-    };
-
-template <class T>
-inline std::ostream& operator<< (std::ostream& out, const TC<T> &c)
-    {
-    c.getIdent().printTo(out);
-    return out;
-    }
-
-void foo(const TC<IDENT> &c)
-    {
-    std::cerr << c 
-         << ": " // This line is crucial!
-         << c
-         << std::endl;
-    }