X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900321_01.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900321_01.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=489671f24ae10eb3cc7099931a9e2ccb9ea21d9d;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900321_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900321_01.C deleted file mode 100644 index 489671f2..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900321_01.C +++ /dev/null @@ -1,29 +0,0 @@ -// g++ 1.37.1 bug 900321_01 - -// cfront flags ERRORs on each of the lines indicated below. g++ does not -// flag either ERRORs or warnings. - -// Although I cannot find where in the current C++ Reference Manual this -// topic is covered, I am sure that these statements should get ERRORs in -// a "strongly typed" language. - -// Cfront 2.0 passes this test. - -// keywords: array types, array bound, pointers - -int (*ptr_to_array_of_ints)[]; -int (*ptr_to_array_of_3_ints) [3]; -int (*ptr_to_array_of_5_ints) [5]; - -void function_0 () -{ - // we miss the first two because typeck.c (comp_array_types) deems - // it okay if one of the sizes is null - ptr_to_array_of_ints = ptr_to_array_of_3_ints; // ERROR - - ptr_to_array_of_3_ints = ptr_to_array_of_ints; // ERROR - - - ptr_to_array_of_3_ints = ptr_to_array_of_5_ints; // ERROR - - ptr_to_array_of_5_ints = ptr_to_array_of_3_ints; // ERROR - -} - -int main () { return 0; }