blob: 32f691d3719b2e91381d2d5054d1bcd9e5629577 [file] [log] [blame]
// g++ 1.37.1 bug 900324_05
// The following erroneous code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, arrays, references, assignment operator=
typedef int int_array[];
extern int_array int_array_object;
int_array &left = int_array_object;
int_array &right = int_array_object;
void function ()
{
left = right; // ERROR - causes segfault
}
int main () { return 0; }