X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Foverload13.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Foverload13.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=6b5ca0fa93d27f08102dd8acf529ccd4397fff5a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/overload13.C b/gcc/testsuite/g++.old-deja/g++.jason/overload13.C deleted file mode 100644 index 6b5ca0fa..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/overload13.C +++ /dev/null @@ -1,27 +0,0 @@ -// Bug: g++ screws up derived->base conversions when calling a global function -// in the presence of matching members in the base. Whew. - -struct xios { - virtual ~xios() { } -}; - -struct xistream: virtual public xios { - int j; - void operator>>(char&); -}; - -struct xfstreambase: virtual public xios { }; - -struct xifstream: public xfstreambase, public xistream { }; - -void operator>>(xistream& i, int j) -{ - i.j = 0; -} - -int main() { - int i; - xifstream ifs; - - ifs >> i; -}