view gcc/testsuite/gcc.dg/graphite/id-pr48648.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-options "-O -fgraphite-identity" } */

void *foo(const void *a);

void bug48648()
{
  unsigned char a[2];
  long b;
  int i;

  for(i = 0; i < 2; i++) {
    if (b <= 0)
      a[i] = 0;
    else if (b >= 8)
      a[i] = 0;
    else
      a[i] = 0;
    b -= 8;
  }
  foo(&a);
}