aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr115929-2.c
blob: 02496d54d798492a1373d163d76bcc8a39b7d4ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-additional-options "-fschedule-insns" } */
/* { dg-require-effective-target scheduling } */

int a, b, c, d, e, f;
int main() {
  if (e && f)
    while (1)
      while (a)
        a = 0;
  if (c) {
    if (b)
      goto g;
    int h = a;
  i:
    b = ~((b ^ h) | 1 % b);
    if (a)
    g:
      b = 0;
  }
  if (d)
    goto i;
  return 0;
}