diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C b/gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C new file mode 100644 index 00000000000..f5ea6bcb8d8 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C @@ -0,0 +1,16 @@ +// g++ 1.37.1 bug 900519_07 + +// It is illegal to specify or to use array-of-reference types, yet g++ +// allows them to be specified (in typedef statements and in declarations) +// and to be used (in declarations). + +// keywords: reference types, array types + +int i; +int j; + +typedef int& int_ref; +typedef int_ref int_ref_array_type[2]; // ERROR - missed + +int& int_ref_array_obj0[2] = { i, j }; // ERROR - missed +int_ref int_ref_array_obj1[2] = { i, j }; // ERROR - missed |