X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900331_04.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900331_04.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=f8a14c6939079d7bd19e8fa8b4c83e60b56cbc4f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900331_04.C b/gcc/testsuite/g++.old-deja/g++.bugs/900331_04.C deleted file mode 100644 index f8a14c69..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900331_04.C +++ /dev/null @@ -1,32 +0,0 @@ -// g++ 1.37.1 bug 900331_04 - -// g++ is unable to correctly parse declarations of formal parameters and -// local objects which have pointer-to-array types or reference-to-array -// types. - -// Cfront 2.0 passes this test. - -// keywords: syntax, arrays, pointers, references, local, formal - -int array[10]; - -int (*global_array_ptr)[10] = &array; -int (&global_array_ref)[10] = array; - -void function0 (int (*formal_array_ptr)[10]) { // gets bogus errors -} - -void function1 (int (&formal_array_ref)[10]) { // gets bogus errors -} - -void function2 () -{ - int (*local_array_ptr)[10] = &array; // gets bogus errors -} - -void function3 () -{ - int (&local_array_ref)[10] = array; // gets bogus error -} - -int main () { return 0; }