gcc/testsuite/gcc.target/i386/harden-sls-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mindirect-branch=thunk-extern -mharden-sls=all" } */ |
| 3 | /* { dg-additional-options "-fno-pic" { target { ! *-*-darwin* } } } */ |
| 4 | |
| 5 | extern void foo (void); |
| 6 | |
| 7 | void |
| 8 | bar (void) |
| 9 | { |
| 10 | foo (); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "jmp\[ \t\]+_?foo" } } */ |
| 14 | /* { dg-final { scan-assembler-not {int3} } } */ |