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

extern int bar (void);

int
foo (void)
{
  return bar () + 1;
}

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