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