aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr58018.c
blob: 52c8e83fa0db112d2e53185ace544de6808ca716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR tree-optimization/58018 */
/* { dg-do compile } */

int a, b, c, d, e;

void
bar (int p)
{
  int f = b;
  e &= p <= (f ^= 0);
}
    
void
foo ()
{
  for (; d; d++)
    {
      bar (a && c);
      bar (0);
      bar (1);
    }
}