(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
indirect-thunk-attr-15.c
       1  /* { dg-do compile { target *-*-linux* } } */
       2  /* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection=branch" } */
       3  
       4  extern void (*bar) (void);
       5  
       6  __attribute__ ((indirect_branch("thunk-extern")))
       7  void
       8  foo (void)
       9  {
      10    bar ();
      11  }
      12  
      13  /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" } } */
      14  /* { dg-final { scan-assembler-not "jmp\[ \t\]*__x86_indirect_thunk_nt" } } */