(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr47372-2.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target fpic } */
       3  /* { dg-options "-O2 -fPIC -g" } */
       4  
       5  typedef unsigned short ush;
       6  typedef ush Pos;
       7  extern ush prev[];
       8  void fill_window( unsigned more, unsigned m)
       9  {
      10      unsigned n;
      11      for (n = 0; n < (unsigned)(1<<15); n++) {
      12        (prev+0x8000)[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
      13      }
      14      for (n = 0; n < 0x8000; n++) {
      15        prev[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
      16      }
      17  }