X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Floop2.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Floop2.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7fd90c714b63fc6b377114a72d16384c68e6aa98;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/loop2.C b/gcc/testsuite/g++.old-deja/g++.other/loop2.C deleted file mode 100644 index 7fd90c71..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/loop2.C +++ /dev/null @@ -1,31 +0,0 @@ -// Build don't link: -// Special g++ Options: -O - -class foo { -public: - operator const char*() const { return a; } - char *a; -}; - -class bar { -public: - ~bar(); - void operator++(int); - bool b() const; -protected: - void* c() const; -}; - -class baz : public bar { -public: - foo const &d() const { return *(foo *)bar::c(); } -}; - -extern int tst (const char *, const char *) throw(); - -void die(const foo& x) -{ - for (baz hi; hi.b(); hi++) - if (tst (hi.d(), x) == 0) - return; -}