X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fvirtual3.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fvirtual3.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=8c30b7689a4afb96eb4a20ae30234b183c83660d;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C b/gcc/testsuite/g++.old-deja/g++.law/virtual3.C deleted file mode 100644 index 8c30b768..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C +++ /dev/null @@ -1,48 +0,0 @@ -// GROUPS passed virtual-functions -// virtual file -// From: allan@ramjet.multinet.DE (Allan Brighton) -// Subject: pos. bug in gcc-2.5.2 on hp -// Date: 4 Nov 1993 22:57:36 -0500 -// Message-ID: <9311041820.AA05942@ramjet.multinet.DE> - -#include -#include - -using namespace std; - -class BugStream : public ostringstream { -public: - BugStream() {} - BugStream& eval(); -}; - - -static struct Eval_ { } eval; -BugStream& operator<<(ostream& os, Eval_); - -BugStream& BugStream::eval() -{ - // make sure str is null terminated - *this << ends; - - // eval the command and set the status - const char* s = str().data(); - cerr << s << endl; - - // reset the stream for the next command - clear(ios::goodbit); - // rdbuf()->freeze(0); - seekp(0); - - return *this; -} - -BugStream& operator<<(ostream& os, Eval_) -{ - return ((BugStream&)os).eval(); -} - -int main() { - BugStream bs; - bs << "PASS" << eval; -}