(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr27073.c
       1  void __attribute__((noinline))
       2  foo (int *p, int d1, int d2, int d3,
       3       short count, int s1, int s2, int s3, int s4, int s5)
       4  {
       5    int n = count;
       6    while (n--)
       7      {
       8        *p++ = s1;
       9        *p++ = s2;
      10        *p++ = s3;
      11        *p++ = s4;
      12        *p++ = s5;
      13      }
      14  }
      15  
      16  int main()
      17  {
      18    int x[10], i;
      19  
      20    foo (x, 0, 0, 0, 2, 100, 200, 300, 400, 500);
      21    for (i = 0; i < 10; i++)
      22      if (x[i] != (i % 5 + 1) * 100)
      23        abort ();
      24    exit (0);
      25  }