text: /* { dg-do compile } */
  /* { dg-options "-O2 -mno-indirect-branch-register -mno-indirect-branch-register -mfunction-return=thunk -mindirect-branch=thunk -fno-pic" } */
  
  extern void (*bar) (void);
  
  int
  foo (void)
  {
    bar ();
    return 0;
  }
  
  /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_return_thunk" } } */
  /* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
  /* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
  /* { dg-final { scan-assembler "__x86_indirect_thunk:" } } */
  /* { dg-final { scan-assembler-times {\tpause} 1 { target { ! x32 } } } } */
  /* { dg-final { scan-assembler-times {\tlfence} 1 { target { ! x32 } } } } */
  /* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?bar" { target { { ! x32 } && *-*-linux* } } } } */
  /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */
  /* { dg-final { scan-assembler-times {\tpause} 2 { target { x32 } } } } */
  /* { dg-final { scan-assembler-times {\tlfence} 2 { target { x32 } } } } */
  /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target { x32 } } } } */
  /* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" { target x32 } } } */
  