aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C37
1 files changed, 3 insertions, 34 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C
index 05c880d2e3c..9b58e81156b 100644
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C
+++ b/gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C
@@ -1,34 +1,3 @@
-// g++ 1.37.1 bug 900520_02
-
-// g++ fails to allow a reference to an unbounded array type to be passed
-// into a formal parameter whose type is pointer-to-bounded-array type.
-
-// Cases other than parameter passing in which similar initializations
-// take place are allowed however.
-
-// cfront 2.0 passes this test.
-
-// keywords: reference types, initialization, parameter passing
-
-typedef int b_array[3];
-typedef int u_array[];
-
-typedef b_array &b_array_ref;
-typedef u_array &u_array_ref;
-
-void take_b_array_ref (b_array_ref arg) { }
-
-extern u_array u_array_gbl_obj;
-
-u_array_ref u_array_ref_gbl_obj0 = u_array_gbl_obj;
-
-b_array_ref b_array_ref_gbl_obj0 = u_array_ref_gbl_obj0; // OK
-
-void test_passing ()
-{
- take_b_array_ref (u_array_ref_gbl_obj0); // gets bogus error
-}
-
-b_array u_array_gbl_obj;
-
-int main () { return 0; }
+void take_b_array_ref (b_array_ref arg) { } // ERROR - passed to here
+b_array_ref b_array_ref_gbl_obj0 = u_array_ref_gbl_obj0; // ERROR - invalid declaration
+ take_b_array_ref (u_array_ref_gbl_obj0); // ERROR - invalid call