(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
graphite/
pr55022.c
       1  /* { dg-do run } */
       2  /* { dg-options "-O2 -fgraphite-identity" } */
       3  
       4  extern void abort (void);
       5  
       6  void __attribute__((noinline,noclone))
       7  f(int *limit, int minLen, int maxLen)
       8  {
       9    int i;
      10  
      11    for (i = minLen; i <= maxLen; i++) {
      12        limit[i] = i;
      13    }
      14  }
      15  
      16  int main()
      17  {
      18    int limit[256], i;
      19    f (limit, 0, 255);
      20    for (i = 0; i < 256; ++i)
      21      {
      22        if (limit[i] != i)
      23  	abort ();
      24        __asm__ volatile ("" : : : "memory");
      25      }
      26    return 0;
      27  }