Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr99530-6.c

raw
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -fpic" } */
3 /* { dg-final { scan-assembler "call\[ \t\]+\[*\]foo@GOTPCREL" { target { ! ia32 } } } } */
4 /* { dg-final { scan-assembler-not "foo@GOT" { target { ia32 } } } } */
5
6 extern void foo (void) __attribute__ ((noplt));
7 void
8 bar (void)
9 {
10 asm ("call %P0" : : "X" (foo));
11 }