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