aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr47372-2.c
blob: 8addcdc5ee325edbb4c4733221e812983bf905b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -fPIC -g" } */

typedef unsigned short ush;
typedef ush Pos;
extern ush prev[];
void fill_window( unsigned more, unsigned m)
{
    unsigned n;
    for (n = 0; n < (unsigned)(1<<15); n++) {
      (prev+0x8000)[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
    }
    for (n = 0; n < 0x8000; n++) {
      prev[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
    }
}