aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr24683.c
blob: 23cb3ab4b015bac3f23b9180dae1011113295179 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target fpic } } */
/* { dg-options "-O2 -fPIC" } */
const int *block;
void final(unsigned int j)
{
  unsigned int i;
  const unsigned char *data = (const unsigned char *)"\0";
  for (i = 0; i < 8; i++)
    for (; j + 63 < 1; j += 64)
      block = (const int *) &data[j];
}