1 /* { dg-skip-if "Not supported in FDPIC" { arm*-*-uclinuxfdpiceabi } "*" "" } */
2 /* { dg-skip-if "-mpure-code and -fPIC incompatible" { *-*-* } { "-mpure-code" } } */
3 /* { dg-options "-fPIC -mpic-data-is-text-relative" } */
4 /* { dg-require-effective-target fpic } */
5 /* { dg-final { scan-assembler "j-\\(.LPIC" } } */
6 /* { dg-final { scan-assembler-not "_GLOBAL_OFFSET_TABLE_-\\(.LPIC" } } */
7 /* { dg-final { scan-assembler-not "j\\(GOT\\)" } } */
8
9 static int j;
10
11 int *Foo ()
12 {
13 return &j;
14 }