1 /* { dg-do compile } */ 2 /* { dg-options "-O -fcf-protection" } */ 3 /* { dg-final { scan-assembler-times "endbr32" 1 { target ia32 } } } */ 4 /* { dg-final { scan-assembler-times "endbr64" 1 { target { ! ia32 } } } } */ 5 /* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */ 6 7 typedef void (*func_t) (void) __attribute__((nocf_check)); 8 extern func_t func; 9 10 void bar(void)11bar (void) 12 { 13 func (); 14 } 15