2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900519_07.C
blob650147ef22a35aa40847ef2e5965a63f372eef64
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900519_07
4 // It is illegal to specify or to use array-of-reference types, yet g++
5 // allows them to be specified (in typedef statements and in declarations)
6 // and to be used (in declarations).
8 // keywords: reference types, array types
10 int i;
11 int j;
13 typedef int& int_ref;
14 typedef int_ref int_ref_array_type[2];          // { dg-error "" } missed
16 int& int_ref_array_obj0[2] = { i, j };          // { dg-error "" } missed
17 int_ref int_ref_array_obj1[2] = { i, j };       // { dg-error "" } missed