diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C deleted file mode 100644 index 705cbf22d01..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C +++ /dev/null @@ -1,21 +0,0 @@ -// g++ 1.37.1 bug 900402_02 - -// g++ fails to correctly flag all attempts to construct an array type -// of zero length as errors. - -// keywords: arrays, array bound, zero length - -typedef int array_type[0]; // ERROR - gets warning only - -int array_object_1[0]; // ERROR - gets warning only - -void function_0 (int formal_array[0]) -{ // ERROR - gets warning only -} - -void function_2 () -{ - int local_object_array_0[0]; // ERROR - gets warning only -} - -int main () { return 0; } |