Use -fcf-protection=return in cet-intrin-4.c
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ret-thunk-7.c
blob262e6780112f923b305631fb810003a8bf880a93
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mfunction-return=keep" } */
4 __attribute__ ((function_return("thunk-extern")))
5 void
6 foo (void)
10 /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_return_thunk" } } */
11 /* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
12 /* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
13 /* { dg-final { scan-assembler-not "call\[ \t\]*\.LIND" } } */