aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr112430.c
blob: 16c34fcbc69dc7732e2a098b6356b163545dd577 (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
25
26
27
28
29
30
/* PR middle-end/112430 */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

int a, b, c, d, e;
unsigned int f;

static void
foo (unsigned int x)
{
  unsigned int g = x < c;
  int h = f < b;
  x += h;
  g += x < h;
  f = x;
  x = g;
  g = f += a;
  h = f < a;
  x += h;
  c += f < d;
  x += c;
  g += x < c;
  e = g;
}

void
bar (unsigned int x)
{
  foo (x);
}