Debian Codegraph @

gcc/testsuite/gcc.target/i386/indirect-thunk-extern-8.c

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