PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / pr54676.c
blobcb3a8a2d578509b3749c802884b5505a1437bc55
1 /* PR tree-optimization/54676 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fno-tree-ccp -fno-tree-copy-prop -fno-tree-fre -ftree-vrp" } */
5 struct S
7 int s:1;
8 };
10 struct S bar (void);
12 #if __SIZEOF_INT__ < 4
13 #define int __INT32_TYPE__
14 #endif
16 int a;
18 void
19 foo (int x)
21 struct S s = bar ();
22 while (!a)
24 int l = 94967295;
25 a = x || (s.s &= l);