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