gcc/testsuite/c-c++-common/analyzer/attr-tainted_args-misuses.c
raw| 1 | int not_a_fn __attribute__ ((tainted_args)); /* { dg-warning "'tainted_args' attribute ignored; valid only for functions and function pointer fields" } */ |
| 2 | |
| 3 | struct s |
| 4 | { |
| 5 | int f __attribute__ ((tainted_args)); /* { dg-warning "'tainted_args' attribute ignored; field must be a function pointer" } */ |
| 6 | }; |