1// { dg-do assemble  }
2// g++ 1.37.1 bug 900324_05
3
4// The following erroneous code causes g++ to segfault.
5
6// Cfront 2.0 passes this test.
7
8// keywords: segfault, arrays, references, assignment operator=
9
10typedef int int_array[];
11
12extern int_array int_array_object;
13
14int_array &left = int_array_object;
15int_array &right = int_array_object;
16
17void function ()
18{
19  left = right;		// { dg-error "" } causes segfault
20}
21
22int main () { return 0; }
23