PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr55833.c
blobb35104b44e8217290529dda630e8b92e7405943a
1 /* PR rtl-optimization/55833 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
5 int a, b, c;
6 int bar (void);
8 void foo()
10 unsigned d, l, *p, k = 1;
12 if(bar())
14 label:
15 if((a = a <= 0))
17 if(c)
18 d = b;
20 if (b || d ? l : k ? : 0)
21 a = d = 0;
23 goto label;
27 while(*p++)
28 goto label;