FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900121_01.C
blobea07968c3a372dc65db1c31438e97ab189045f01
1 // g++ 1.36.1 bug 900121_01
3 // The following file causes g++ 1.36.1 (and 1.36.2) to abort.
5 // Cfront 2.0 passes this test.
7 // keywords: abort, incomplete types, reference types, formal parameters
9 struct s0;              // ERROR - forward declaration
11 void function (struct s0 &arg1, struct s0 &arg2)
13   arg1 = arg2;          // ERROR - causes abort
16 int main () { return 0; }