Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr87412-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fcf-protection -mfunction-return=keep -mindirect-branch=keep" } */
3
4 void
5 __attribute__ ((indirect_branch("thunk"), function_return("thunk")))
6 bar (void)
7 {
8 /* { dg-error "'-mindirect-branch' and '-fcf-protection' are not compatible" "" { target *-*-* } .-1 } */
9 /* { dg-error "'-mfunction-return' and '-fcf-protection' are not compatible" "" { target *-*-* } .-2 } */
10 }