X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Flocal.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Flocal.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=6159db0c613b02903f2da327071eb3268c07b569;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/local.C b/gcc/testsuite/g++.old-deja/g++.jason/local.C deleted file mode 100644 index 6159db0c..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/local.C +++ /dev/null @@ -1,20 +0,0 @@ -// General testcase for local classes. - -int x; -void f () -{ - static int s; - int x; // ERROR - referenced below - extern int q(); - - struct local { - int g() { return x; } // ERROR - automatic variable - int h() { return s; } // gets bogus error - local class - int k() { return ::x; } // OK - int l() { return q(); } // OK - int m(); // OK - not defined - static int foo; // ERROR - static data member of local class - }; -} - -local* p = 0; // ERROR - no such type in scope