summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr66232-9.c
blob: 4aec47795b9b87ea9559327b5416abf8bcdbec54 (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) __attribute__((visibility("hidden")));

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

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