aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900324_05.C
blob: 62625b59f0bc70076657a148dcfb5f84125b7b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// 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;		// { dg-error "" } causes segfault
}

int main () { return 0; }