summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ifc-pr71503.c
blob: 5a90abfd10ed7b282195a65aff01796f368dfa8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-Ofast" { target *-*-* } } */

int a, b;
unsigned long d;
void fn1() {
  unsigned long *h = &d;
line1 : {
  int i = 4;
  for (; b; i++) {
    d = ((d + 6 ?: *h) ? a : 7) && (i &= 0 >= b);
    b += a;
  }
}
  h = 0;
  for (; *h;)
    goto line1;
}