diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/call-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/call-3.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/call-3.c b/gcc/testsuite/gcc.target/mips/call-3.c new file mode 100644 index 000000000..25f01d2a9 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/call-3.c @@ -0,0 +1,11 @@ +/* { dg-options "-O2 -mrelax-pic-calls -mno-shared" } */ +/* { dg-final { scan-assembler "\\.reloc\t1f,R_MIPS_JALR,g\n1:\tjalr\t" } } */ +/* { dg-require-visibility "" } */ + +__attribute__ ((visibility ("hidden"))) void g (); + +NOMIPS16 f () +{ + g (); + return 1; +} |