gcc/testsuite/gcc.target/i386/pr87412-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fcf-protection=return -mfunction-return=thunk -mindirect-branch=thunk" } */ |
| 3 | |
| 4 | void |
| 5 | bar (void) |
| 6 | { |
| 7 | /* { dg-error "'-mindirect-branch' and '-fcf-protection' are not compatible" "" { target *-*-* } .-1 } */ |
| 8 | /* { dg-error "'-mfunction-return' and '-fcf-protection' are not compatible" "" { target *-*-* } .-2 } */ |
| 9 | } |