1 /* { dg-do compile } */
2 /* { dg-additional-options "-fcf-protection=none" } */
4 int func (int) __attribute__ ((nocf_check
)); /* { dg-warning "'nocf_check' attribute ignored" } */
5 int (*fptr
) (int) __attribute__ ((nocf_check
)); /* { dg-warning "'nocf_check' attribute ignored" } */
6 typedef void (*nocf_check_t
) (void) __attribute__ ((nocf_check
)); /* { dg-warning "'nocf_check' attribute ignored" } */
11 return func (arg
) + fptr (arg
);
15 foo2 (void (*foo
) (void))
17 void (*func
) (void) __attribute__((nocf_check
)) = foo
; /* { dg-warning "'nocf_check' attribute ignored" } */
22 foo3 (nocf_check_t foo
)
28 foo4 (void (*foo
) (void) __attribute__((nocf_check
))) /* { dg-warning "'nocf_check' attribute ignored" } */