aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55964.c
blob: 361151ccf0c77d561cbbb34ea771e72021c6cee2 (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
/* { dg-do compile } */
/* { dg-options "-ftree-loop-distribution -funswitch-loops -w" } */

int a, b;

void f(void)
{
lbl1:
    for(b = 0; b < 1; b++)
    {
        int u = 1;

        if((b %= 0) * (b ? 0 : a) - 1 && (u /= 0))
        {
            int *q = &u, **k = q;
            goto lbl1;
lbl2:
lbl3:
            a = **k;
            goto lbl2;
        }
    }
    goto lbl3;
}