PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / data-rel-1.c
blobd9d88f2e8db9540e645a043d2264d78d0b8198d2
1 /* { dg-options "-fPIC -mno-pic-data-is-text-relative" } */
2 /* { dg-final { scan-assembler-not "j-\\(.LPIC" } } */
3 /* { dg-final { scan-assembler-not "_GLOBAL_OFFSET_TABLE_-\\(.LPIC" } } */
4 /* { dg-final { scan-assembler "j\\(GOT\\)" } } */
5 /* { dg-final { scan-assembler "(ldr|mov)\tr\[0-9\]+, \\\[?r9" } } */
7 static int j;
9 int *Foo ()
11 return &j;