[PATCH, GCC/ARM, 6/10] Clear GPRs inline when calling nscall function
[official-gcc.git] / gcc / testsuite / gcc.target / arm / data-rel-2.c
blob56a54e818495b80c7e7899f6ff2bab86c0c5577c
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 -mno-pic-data-is-text-relative -mno-single-pic-base" } */
4 /* { dg-final { scan-assembler-not "j-\\(.LPIC" } } */
5 /* { dg-final { scan-assembler "_GLOBAL_OFFSET_TABLE_-\\(.LPIC" } } */
6 /* { dg-final { scan-assembler "j\\(GOT\\)" } } */
8 static int j;
10 int *Foo ()
12 return &j;