gcc/testsuite/gcc.target/i386/ret-thunk-6.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mfunction-return=keep" } */ |
| 3 | |
| 4 | __attribute__ ((function_return("thunk-inline"))) |
| 5 | void |
| 6 | foo (void) |
| 7 | { |
| 8 | } |
| 9 | |
| 10 | /* { dg-final { scan-assembler {jmp[ \t]*\.?LIND} } } */ |
| 11 | /* { dg-final { scan-assembler {call[ \t]*\.?LIND} } } */ |
| 12 | /* { dg-final { scan-assembler {\tpause} } } */ |
| 13 | /* { dg-final { scan-assembler {\tlfence} } } */ |
| 14 | /* { dg-final { scan-assembler-not "jmp\[ \t\]*_?__x86_return_thunk" } } */ |