aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr110271.c
blob: 0cb91beaaeaddf7dd651fe3919ece643b2e9ef13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR tree-optimization/110271 */

unsigned a, b, c, d, e;

void
foo (unsigned *x, int y, unsigned int *z)
{
  for (int i = 0; i < y; i++)
    {
      b += d;
      a += b < d;
      a += c = (__PTRDIFF_TYPE__) x > 3;
      d = z[1] + (a < c);
      a += e;
      d += a < e;
    }
}

void
bar (unsigned int *z)
{
  unsigned *x = x;
  foo (x, 9, z);
}