PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr69802.c
blob27ee02f36b5d54193741f779a0fc4a98e4ee95a0
1 /* PR tree-optimization/69802 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wall" } */
5 struct S { unsigned f : 1; };
6 int a, d;
8 int
9 foo (void)
11 unsigned b = 0;
12 struct S c;
13 d = ((1 && b) < c.f) & c.f; /* { dg-warning "is used uninitialized" } */
14 return a;
17 int
18 bar (_Bool c)
20 unsigned b = 0;
21 d = ((1 && b) < c) & c;
22 return a;