aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr111845.c
blob: 1bcb4f88e6f18cd425aa6fb9ae1e3c56ab863983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/111845 */
/* { dg-do compile } */
/* { dg-options "-O2 --param tree-reassoc-width=2" } */

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

void
foo (int x)
{
  b += d;
  c += b < d;
  b += e = a < x;
  c += b;
  c += b < e;
}