1 // g++ 1.37.1 bug 900402_02
3 // g++ fails to correctly flag all attempts to construct an array type
4 // of zero length as errors.
6 // keywords: arrays, array bound, zero length
8 typedef int array_type[0]; // ERROR - gets warning only
10 int array_object_1[0]; // ERROR - gets warning only
12 void function_0 (int formal_array[0])
13 { // ERROR - gets warning only
18 int local_object_array_0[0]; // ERROR - gets warning only
21 int main () { return 0; }