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


__attribute__ ((noplt))
int foo();

int main()
{
  return foo();
}

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