(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr94988.c
       1  /* { dg-do run } */
       2  
       3  short *b;
       4  
       5  void __attribute__((noipa))
       6  bar (short x, int j)
       7  {
       8    for (int i = 0; i < j; ++i)
       9      *b++ = x;
      10  }
      11  
      12  int
      13  main()
      14  {
      15    b = (short *)&b;
      16    bar (0, 1);
      17  #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
      18    if ((short)(__UINTPTR_TYPE__)b != 0)
      19      __builtin_abort ();
      20  #endif
      21    return 0;
      22  }