view gcc/testsuite/gcc.dg/torture/pr57676.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

/* Verify that LRA does not abort prematurely in a release build of the
   compiler.  */
/* { dg-do compile } */
/* { dg-options "-fno-checking -w -funroll-loops" } */

int a, b, c;

void f(p1)
{
    for(;;)
    {
        if(p1 ? : (c /= 0))
        {
            int d;

            for(; d; d++)
            {
                for(b = 0; b < 4; b++)
                    p1 /= p1;
lbl:
                while(a);
            }
        }

        if((c &= 1))
            goto lbl;
    }
}