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

void foo();

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

/* { dg-final { scan-assembler "call\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler "call\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */