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