X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Finline14.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Finline14.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=5a7ea4bf2a0faf6dc6b438aa7de464f861153f6e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git 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 index 5a7ea4bf..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/inline14.C +++ /dev/null @@ -1,49 +0,0 @@ -// Build don't link: -// Origin: Gerald Pfeifer - -#include - -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 -struct TC - { - IDENT i; - - const IDENT& getIdent() const - { - return i; - } - }; - -template -inline std::ostream& operator<< (std::ostream& out, const TC &c) - { - c.getIdent().printTo(out); - return out; - } - -void foo(const TC &c) - { - std::cerr << c - << ": " // This line is crucial! - << c - << std::endl; - }