FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900402_02.C
blob705cbf22d014b118224125cb7634d65405cc4612
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
16 void function_2 ()
18   int local_object_array_0[0];          // ERROR - gets warning only
21 int main () { return 0; }