blob: 709eda6b77ec695378f30cc313f3bb2190c7b2a7 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fcf-protection" } */
/* { dg-final { scan-assembler-times "endbr32" 1 { target ia32 } } } */
/* { dg-final { scan-assembler-times "endbr64" 1 { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */
typedef void (*func_t) (void) __attribute__((nocf_check));
extern func_t func;
void
bar (void)
{
func ();
}