PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / noplt-1.c
blobf099a3828cd778b996a4510537f966d6beb68568
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-fno-pic" } */
4 __attribute__ ((noplt))
5 void foo();
7 int main()
9 foo();
10 return 0;
13 /* { dg-final { scan-assembler "call\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */
14 /* { dg-final { scan-assembler "call\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */