view gcc/testsuite/gcc.dg/torture/pr79194.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 } */

int iw, vr;

void
d9 (unsigned int j3, long long int f5, int kp)
{
  int *qb = &kp;

  if (kp != 0)
    {
      long long int oq;
      unsigned int tl = 0;

      for (j3 = 0; j3 < 1; ++j3)
        qb = &tl;
      goto ed;

 l7:
      oq = 1;
      while (oq < 2)
        oq *= j3;

 ed:
      do
        {
          oq -= *qb;
          if (oq != 0)
            {
              long long int ie = j3 & f5;
              int ws = (j3 != 0 && kp != 0);

              tl = ie > ws;
              iw = vr = tl;
            }
          else
            tl = (kp != 0 && (0 % 0) != 0); /* { dg-warning "division by zero" } */
        }
      while (tl != 0);
    }
  goto l7;
}