summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr85167.c
blob: e4277e3ef7220b93f74a4ecfa07f21bcf0f89d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR rtl-optimization/85167 */
/* { dg-do compile } */
/* { dg-options "-O2 -w" } */

struct A { long b; };
int c, d, e;
int bar (void);

int
foo (void)
{
  long g;
  for (; g == c ? 0 : (e = 1); g = ((struct A *)g)->b)
    if (bar ())
      return d;
}