aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/graphite/id-pr48805.c
blob: f13a828e180940c486d5134252d803868bf5ad90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void *A(const void *a);
void C(void);

static void B(unsigned short a[])
{
  long i, j, tmp;

  for(i = 0; i < 3; i++) {
    for(j = 1; j <= 3; j++)
      tmp -= a[i - j];

    a[i] = (unsigned short)(tmp >> 1);
  }
}
void C(void)
{
  unsigned short a[3], b[3];
  B(b + 1);
  A(a);
}