X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Freport.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Freport.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=73adee87c9c44519fd7621ca22aa25ef153eb4ed;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/report.C b/gcc/testsuite/g++.old-deja/g++.jason/report.C deleted file mode 100644 index 73adee87..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/report.C +++ /dev/null @@ -1,74 +0,0 @@ -// Build don't link: -// GROUPS passed error-reporting -// Special g++ Options: -Wreturn-type - -// DR 295 allows qualification via typedef - -template -class badoo -{ -}; - -template -class doowop -{ -}; - -struct A -{ - int a; - ~A () { a = 0; } - operator int () { return a; } -}; - -extern "C" int atoi (char *); - -int (*fee)(char *) = atoi; -int (**bar)(char *) = &fee; - -char *s = "4"; -char **sp = &s; -char ***spp = &sp; - -int foo (int a = (**bar) (s)) -{ - return doowop::bar; // ERROR - not a member -} - -int foo2 (int (*a)(int) = &foo) -{ - undef4 (1); // ERROR - implicit declaration - return 1; -} - -class X{ - class Y{}; // ERROR - private -}; - -typedef int const * bart (); -//The following is DR295 dependant -typedef bart const * const * bar2; // ERROR - constifying qualifiers -typedef bart volatile * const * bar2v; // ERROR - qualifiers - -bar2 baz (X::Y y) -{ // ERROR - in this context - X::Y f; // ERROR - in this context - bar2 wa [5]; - wa[0] = baz(f); - undef2 (1); // ERROR - implicit declaration -} - -int ninny () -{ - struct A - { - static int ninny2 () { return badoo<'\001'>::foo; } // ERROR - not a member - }; - - return A::ninny2(); -} - -int darg (char X::*p) -{ - undef3 (1); // ERROR - implicit declaration -}