gcc/testsuite/c-c++-common/attr-nocf-check-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | int var1 __attribute__((nocf_check)); /* { dg-warning "'nocf_check' attribute only applies to function types" } */ |
| 4 | int *var2 __attribute__((nocf_check)); /* { dg-warning "'nocf_check' attribute only applies to function types" } */ |
| 5 | void (**var3) (void) __attribute__((nocf_check)); /* { dg-warning "'nocf_check' attribute only applies to function types" } */ |