X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.brendan%2Foverload3.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.brendan%2Foverload3.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=baa90fb282d547c7ce357a4b0d00408380204766;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload3.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload3.C deleted file mode 100644 index baa90fb2..00000000 --- a/gcc/testsuite/g++.old-deja/g++.brendan/overload3.C +++ /dev/null @@ -1,27 +0,0 @@ -// Build don't link: -// GROUPS passed overloading -typedef int rutBoolean; - -class rutBigIntRep -{ -public: - friend rutBoolean operator>(const rutBigIntRep& a, const rutBigIntRep& b); - operator rutBoolean() const; -protected: - enum Kluge {kluge}; - rutBigIntRep(Kluge) {} - rutBigIntRep(); - rutBigIntRep(const rutBigIntRep& value); - rutBigIntRep& operator=(const rutBigIntRep& value); -}; - -rutBoolean operator>(const rutBigIntRep& a, const rutBigIntRep& b) { - // This should not result in a warning. It used to warn about the - // conversion from int to enum while exploring the possibility of - // converting `a' via `operator rutBoolean', then using the - // rutBigIntRep(Kluge) constructor. It later realizes it shouldn't - // do this, but the call to build_type_conversion was ending up with - // a warning in convert. - rutBigIntRep diff(a); - return 0; -}