gcc/testsuite/gcc.target/i386/ret-thunk-7.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mfunction-return=keep" } */ |
| 3 | |
| 4 | __attribute__ ((function_return("thunk-extern"))) |
| 5 | void |
| 6 | foo (void) |
| 7 | { |
| 8 | } |
| 9 | |
| 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} } } */ |