X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Foverload7.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Foverload7.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=57bec8bed2dee32005c29de0da6c7785d0ce3d08;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/overload7.C b/gcc/testsuite/g++.old-deja/g++.other/overload7.C deleted file mode 100644 index 57bec8be..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/overload7.C +++ /dev/null @@ -1,22 +0,0 @@ -// Check that object call works when there are multiple conversion ops -// returning the same type. - -typedef int (*pfn)(); - -int zero () { return 0; } -int one () { return 1; } -int two () { return 2; } - -struct A { - A() { } - operator pfn () { return one; } - operator pfn () const { return zero; } - operator pfn () volatile { return two; } -}; - -int -main () -{ - const A a; - return a(); -}