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