FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900324_05.C
blob32f691d3719b2e91381d2d5054d1bcd9e5629577
1 // g++ 1.37.1 bug 900324_05
3 // The following erroneous code causes g++ to segfault.
5 // Cfront 2.0 passes this test.
7 // keywords: segfault, arrays, references, assignment operator=
9 typedef int int_array[];
11 extern int_array int_array_object;
13 int_array &left = int_array_object;
14 int_array &right = int_array_object;
16 void function ()
18   left = right;         // ERROR - causes segfault
21 int main () { return 0; }