blob: dc4b3cfb12dc787f8841c51aa24315c5af9789aa [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-mxbpf" } */
/* GCC should generate an indirect call instruction (call %REG)
when targetting xBPF. */
void
foo ()
{
;
}
void
bar()
{
void (*funp) () = &foo;
(*funp) ();
}
/* { dg-final { scan-assembler "call\t%r" } } */