gcc/testsuite/gcc.target/i386/noplt-2.c
raw| 1 | /* { dg-do compile { target *-*-linux* } } */ |
| 2 | /* { dg-options "-O2 -fno-pic" } */ |
| 3 | |
| 4 | |
| 5 | __attribute__ ((noplt)) |
| 6 | int foo(); |
| 7 | |
| 8 | int bar() |
| 9 | { |
| 10 | return foo(); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "jmp\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */ |
| 14 | /* { dg-final { scan-assembler "jmp\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */ |