2 // g++ 1.37.1 bug 900331_02
4 // g++ fails to treat conditional expressions which yield composite type
5 // (i.e. struct type, union type, or class type) lvalues as if they did
6 // in fact yield lvalues in all cases.
8 // Cfront 2.0 passes this test.
10 // keywords: conditional operator?:, lvalues, composite types
24 (i ? object0 : object1).data_member = 99; // { dg-bogus "" }
25 (i ? object0 : object1) = object2; // { dg-bogus "" }
28 int main () { return 0; }