X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Flookup19.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Flookup19.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=e355f2d392a12d94071176f935f3ac0a91a78d7b;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup19.C b/gcc/testsuite/g++.old-deja/g++.other/lookup19.C deleted file mode 100644 index e355f2d3..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/lookup19.C +++ /dev/null @@ -1,54 +0,0 @@ -// Test for proper handling of type lookup for conversion operator names. -// Build don't link: - -// Test 1: Only at file scope -typedef int B; -struct A -{ - int B; - operator B *(); -}; - -A::operator B * () -{ - return 0; -} - -// Test 2: Only at class scope -struct C -{ - typedef int D; - operator D *(); -}; - -int D; -C::operator D * () -{ - return 0; -} - -// Test 3: Matching -struct E -{ - typedef int F; - operator F *(); -}; - -typedef int F; -E::operator F * () -{ - return 0; -} - -// Test 4: Conflicting -struct G -{ - typedef int H; - operator H *(); -}; - -typedef double H; -G::operator H * () // ERROR - mismatch -{ - return 0; -}