aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/cet-notrack-4b.c
blob: 68226b7d0da4e082e5bd8cb5503a7987c855e326 (plain)
1
2
3
4
5
6
/* { dg-do compile } */
/* { dg-options "-O -fcf-protection" } */

int var1 __attribute__((nocf_check)); /* { dg-warning "'nocf_check' attribute only applies to function types" } */
int *var2 __attribute__((nocf_check)); /* { dg-warning "'nocf_check' attribute only applies to function types" } */
void (**var3) (void) __attribute__((nocf_check)); /* { dg-warning "'nocf_check' attribute only applies to function types" } */