view gcc/testsuite/gcc.dg/torture/pr52996.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-funswitch-loops" } */

int a, b, c, d, e, f;
void
fn1 ()
{
    int g, h;
lbl_173:
    if (a)
        c++;
lbl_158:
    e = 0;
    h = 0;
    for (; h > -8; h--)
    {
        g = 0;
        for (; g <= 0; g += 1)
        {
            d = 1;
            for (; d >= 0; d -= 1)
                a = 1;
            if (b)
                break;
            if (f)
                return;
            if (h)
                goto lbl_158;
        }
    }
    goto lbl_173;
}