2 /* { dg-options "-O2" } */
4 /* Ensure that BIT_FIELD_REFs gets the appropriate VUSE.
5 Contributed by Paolo Bonzini <bonzini@gnu.org>.
7 This testcase actually never triggered in the CVS repo, but it did
8 in my local tree and it seems worth testing. In this test, the if's
9 are folded to BIT_FIELD_REFs but the VUSEs were erroneously left out.
10 Therefore, DOM did not see that i was modified between the two ifs
11 and optimized away the second if. */
13 extern void abort (void);
14 extern void exit (int);
22 struct x i
= { 1, 1 };
28 if (i
.b
== 1 && i
.c
== 0)
31 if (i
.b
== 1 && i
.c
== 0)