summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/noplt-1.c
blob: cc04bf52defd5cbd2457660a2179054ec315b17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
/* { dg-options "-fno-pic" } */

__attribute__ ((noplt))
void foo();

int main()
{
  foo();
  return 0;
}

/* { dg-final { scan-assembler "call\[ \t\]\\*.*foo.*@GOTPCREL\\(%rip\\)" } } */