1// Check that we handle bitfields as complex lvalues properly. 2 3struct A 4{ 5 int i: 2; 6 int j: 2; 7 int k: 2; 8}; 9 10A a, a2; 11bool b; 12void f (); 13 14int main () 15{ 16 (f(), a.j) = 1; 17 (f(), a).j = 2; 18 (b ? a.j : a2.k) = 3; 19 (b ? a : a2).j = 0; 20 ++(a.j) = 1; 21 (a.j = 2) = 3; 22} 23 24 25