diff options
| author | Tristan Partin <tristan@partin.io> | 2024-05-07 14:51:40 -0500 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-05-07 15:33:32 -0700 |
| commit | 8cb16b2d6a97514bf17aa8ca2f6bf098cfc5bcbf (patch) | |
| tree | eafe5a76fe3908c389ce27d4650af49ff794e795 /test cases/common | |
| parent | 23eb7ba700cd6c53d5491cc4f99c532629efa1e2 (diff) | |
| download | meson-8cb16b2d6a97514bf17aa8ca2f6bf098cfc5bcbf.tar.gz | |
Add support for GCC's null_terminated_string_arg function attribute
This is new as of 14.1.
Diffstat (limited to 'test cases/common')
| -rw-r--r-- | test cases/common/197 function attributes/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/common/197 function attributes/meson.build b/test cases/common/197 function attributes/meson.build index 530db9313..db7e3af32 100644 --- a/test cases/common/197 function attributes/meson.build +++ b/test cases/common/197 function attributes/meson.build @@ -117,6 +117,12 @@ if ['gcc', 'intel'].contains(c.get_id()) endif endif +if c.get_id() == 'gcc' + if c.version().version_compare('>= 14.1') + attributes += 'null_terminated_string_arg' + endif +endif + if get_option('mode') == 'single' foreach a : attributes x = c.has_function_attribute(a) |
