summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/data-rel-3.c
blob: 4ce904802570c83442cd3321c87d87c2ed0b43df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-skip-if "Not supported in FDPIC" { arm*-*-uclinuxfdpiceabi } "*" "" } */
/* { dg-skip-if "-mpure-code and -fPIC incompatible" { *-*-* } { "-mpure-code" } } */
/* { dg-options "-fPIC -mpic-data-is-text-relative" } */
/* { dg-final { scan-assembler "j-\\(.LPIC"  } } */
/* { dg-final { scan-assembler-not "_GLOBAL_OFFSET_TABLE_-\\(.LPIC" } } */
/* { dg-final { scan-assembler-not "j\\(GOT\\)" } } */

static int j;

int *Foo ()
{
  return &j;
}