view gcc/testsuite/gcc.dg/graphite/id-pr48648.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +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);
}