Daily bump.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900519_07.C
blobf5ea6bcb8d82f3c4e74951f06bb4ffa1217c37f1
1 // g++ 1.37.1 bug 900519_07
3 // It is illegal to specify or to use array-of-reference types, yet g++
4 // allows them to be specified (in typedef statements and in declarations)
5 // and to be used (in declarations).
7 // keywords: reference types, array types
9 int i;
10 int j;
12 typedef int& int_ref;
13 typedef int_ref int_ref_array_type[2];          // ERROR - missed
15 int& int_ref_array_obj0[2] = { i, j };          // ERROR - missed
16 int_ref int_ref_array_obj1[2] = { i, j };       // ERROR - missed