blob: e99bc753d97747323b6a5dccb7ad0a3db3ee93f8 [file] [log] [blame]
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fpic" } */
/* { dg-final { scan-assembler "call\[ \t\]+\[*\]foo@GOTPCREL" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-not "foo@GOT" { target { ia32 } } } } */
extern void foo (void) __attribute__ ((noplt));
void
bar (void)
{
asm ("call %P0" : : "X" (foo));
}