2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / indirect-thunk-attr-16.c
blob0244edf53b7f6f39c251d6a49e812194baf5cf3c
1 /* { dg-do compile { target *-*-linux* } } */
2 /* { dg-options "-O2 -mindirect-branch-register -mfunction-return=keep -fno-pic -fplt -mindirect-branch=keep -fcf-protection -mcet" } */
4 extern void (*bar) (void) __attribute__((nocf_check));
6 __attribute__ ((indirect_branch("thunk-extern")))
7 void
8 foo (void)
10 bar ();
13 /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_nt_(r|e)" } } */