FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / return1.C
blob42a7e47a2c41e1fef94c2fe5eb32e9b15df96784
1 // Build don't link:
2 // Special g++ Option: 
3 // Origin: holmen@mail.nu
5 struct C {
6     int f() {return 0;}
7 };
9 struct D {
10     C a[1];
11     C* g();
14 C* D::g() {
15     int i = 0;
16     while (i < 1 && a[i].f() != 1) {}
17     return undefined_variable; // ERROR -