Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.bugs / 900324_05.C
blob62625b59f0bc70076657a148dcfb5f84125b7b75
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900324_05
4 // The following erroneous code causes g++ to segfault.
6 // Cfront 2.0 passes this test.
8 // keywords: segfault, arrays, references, assignment operator=
10 typedef int int_array[];
12 extern int_array int_array_object;
14 int_array &left = int_array_object;
15 int_array &right = int_array_object;
17 void function ()
19   left = right;         // { dg-error "" } causes segfault
22 int main () { return 0; }