1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -ffixed-rax -ffixed-rbx -ffixed-rcx -ffixed-rdx -ffixed-rdi -ffixed-rsi -mindirect-branch-cs-prefix -mindirect-branch=thunk-extern" } */
3 /* { dg-additional-options "-fno-pic" { target { ! *-*-darwin* } } } */
4
5 extern void (*bar) (void);
6
7 int
8 foo (void)
9 {
10 bar ();
11 return 0;
12 }
13
14 /* { dg-final { scan-assembler-times "call\[ \t\]+_?__x86_indirect_thunk_r\[0-9\]+" 1 } } */
15 /* { dg-final { scan-assembler-times "\tcs" 1 } } */