summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/m68k/pic-1.c
blob: b8d3fe81aea21cbce579ca26a89f76fdd8957178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile { target m68k-*-* fido-*-* } }  */
/* { dg-options "-O2 -fpic" }  */

extern void Foo (void *);

char *ary[] = {"a", "b", "c", "d", "e"};

void Bar (void)
{
  int cnt = 0;

  for (cnt = 0; cnt < 4;  ++cnt)
    {
      char *ptr = ary[cnt];

      Foo (&ptr);
    }
}