modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/20000629-1.c (about)

     1  struct a
     2  {
     3    struct a * x;
     4  };
     5  
     6  void
     7  foo (struct a * b)
     8  {
     9    int i;
    10  
    11    for (i = 0; i < 1000; i++)
    12      {
    13        b->x = b;
    14        b++;
    15      }
    16  }
    17  
    18  void
    19  bar (struct a * b)
    20  {
    21    int i;
    22  
    23    for (i = 0; i < 1000; i++)
    24      {
    25        b->x = b;
    26        b--;
    27      }
    28  }