aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C
blob: 3259163582463302744698e4c99dac4913c91562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// g++ 1.36.1 bug 900121_01

// The following file causes g++ 1.36.1 (and 1.36.2) to abort.

// Cfront 2.0 passes this test.

// keywords: abort, incomplete types, reference types, formal parameters

struct s0;              // { dg-error "" } forward declaration

void function (struct s0 &arg1, struct s0 &arg2)
{
  arg1 = arg2;		// { dg-error "" } causes abort
}

int main () { return 0; }