OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900121_01.C
1 // g++ 1.36.1 bug 900121_01
2
3 // The following file causes g++ 1.36.1 (and 1.36.2) to abort.
4
5 // Cfront 2.0 passes this test.
6
7 // keywords: abort, incomplete types, reference types, formal parameters
8
9 struct s0;
10
11 void function (struct s0 &arg1, struct s0 &arg2)
12 {
13   arg1 = arg2;          // ERROR - causes abort
14 }
15
16 int main () { return 0; }