(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
ret-thunk-16.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -mfunction-return=thunk-inline -mindirect-branch=thunk-extern " } */
       3  /* { dg-additional-options "-fno-pic" { target { ! *-*-darwin* } } } */
       4  
       5  extern void (*bar) (void);
       6  
       7  __attribute__ ((function_return("keep"), indirect_branch("keep")))
       8  int
       9  foo (void)
      10  {
      11    bar ();
      12    return 0;
      13  }
      14  
      15  /* { dg-final { scan-assembler-not "_?__x86_indirect_thunk" } } */
      16  /* { dg-final { scan-assembler-not "_?__x86_return_thunk" } } */
      17  /* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
      18  /* { dg-final { scan-assembler-not {jmp[ \t]*\.?LIND} } } */
      19  /* { dg-final { scan-assembler-not {call[ \t]*\.?LIND} } } */