1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fcf-protection -mfunction-return=thunk -mindirect-branch=thunk" } */ 3 4 void bar(void)5bar (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 } 10