summaryrefslogtreecommitdiff
path: root/test cases/common/197 function attributes/meson.build
AgeCommit message (Collapse)Author
2025-11-18Add support for the `counted_by` attributeTristan Partin
This is a new attribute released in GCC 15 and clang 18. It isn't supported in C++ compilers at the moment.
2024-05-07Add support for GCC's null_terminated_string_arg function attributeTristan Partin
This is new as of 14.1.
2023-12-03macos: Fix test case for constructor_priority when using gccAndres Freund
GCC does not support constructor_priority on macos. It's possibly not the only platform for which that is the case, but...
2023-11-04Fix visibility attribute support check for GCC on WindowsChristoph Reiter
has_function_attribute() depends on -Wattributes being emitted when an attribute is not supported by the compiler. In case of GCC on Window (at least) there is no warning in case the attribute is used on a declaration. Only once there is also a function definition does it emit a warning like: a.c: In function ‘foo’: a.c:8:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] 8 | } To fix this add a dummy function definition to all visibility compiler checks in meson. The tests in "197 function attributes" only checked for positive return result on on-msvc compilers, except one special case for dllexport/dllimport. Refactor the tests a bit so one can specify also a negative expected result, and add tests for all visibility attribute variants.
2023-02-01add cc.has_function_attribute('vector_size')Dudemanguy
2022-05-19Add cc.has_function_attribute('sentinel')Tristan Partin
2022-05-19Add cc.has_function_attribute('section')Tristan Partin
2022-01-26compilers/c_function_attributes: add retainArsen Arsenović
retain is a relatively young attribute which has proven itself useful for working with --gc-sections -z start-stop-gc.
2021-04-26Condense test directory names.Jussi Pakkanen