X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fconversion6.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Fconversion6.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a8477e36864e6cd65eca7c0e571d08eeef87b6e8;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/conversion6.C b/gcc/testsuite/g++.old-deja/g++.jason/conversion6.C deleted file mode 100644 index a8477e36..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/conversion6.C +++ /dev/null @@ -1,40 +0,0 @@ -// PRMS Id: g++/6034 - -extern "C" int printf (const char *, ...); - -class Base -{ - char x; -}; - -template -// remove the public Base inheritance and the problem goes away... -class Container : public Base -{ -public: - - Container(const T& aValue): myValue(aValue) { } - - operator const T&(void) const - { - printf("Container::const T& called\n"); - return myValue; - } - -protected: - - T myValue; -}; - -typedef unsigned short Type; - -typedef Container TypeContainer; - -int main(void) -{ - TypeContainer myTypeContainer(2); - Type t = myTypeContainer; - - printf ("myType = %d\n", t); - return t != 2; -}