blob: 33a9e8aed4e7c58fdcdcc398164bf348316ace8a [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fcf-protection -mfunction-return=keep -mindirect-branch=keep" } */
void
__attribute__ ((indirect_branch("thunk"), function_return("thunk")))
bar (void)
{
/* { dg-error "'-mindirect-branch' and '-fcf-protection' are not compatible" "" { target *-*-* } .-1 } */
/* { dg-error "'-mfunction-return' and '-fcf-protection' are not compatible" "" { target *-*-* } .-2 } */
}