gcc/testsuite/gcc.target/i386/pr93492-2.c
raw| 1 | /* { dg-do "compile" { target *-*-linux* } } */ |
| 2 | /* { dg-options "-O1 -fcf-protection -mmanual-endbr -fasynchronous-unwind-tables" } */ |
| 3 | |
| 4 | /* Test the placement of the .LPFE0 label. */ |
| 5 | |
| 6 | void |
| 7 | __attribute__ ((cf_check,patchable_function_entry (1, 0))) |
| 8 | f10_endbr (void) |
| 9 | { |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-assembler "\t\.cfi_startproc\n\tendbr(32|64)\n.*\.LPFE0:\n\tnop\n\tret\n" } } */ |