]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: AC_C_FLEXIBLE_ARRAY_MEMBER result can vary between C and C++.
authorZack Weinberg <zack@owlfolio.org>
Wed, 4 Feb 2026 17:10:41 +0000 (12:10 -0500)
committerZack Weinberg <zack@owlfolio.org>
Wed, 4 Feb 2026 17:10:41 +0000 (12:10 -0500)
For example, the native C compiler for Solaris 10 (Sun C in, at least,
the version 5.9 .. 5.15 range) supports C99 flexible array members,
but the matching C++ compiler doesn’t.

sr #111380

tests/mktests.pl

index 9d358e9d9fd482c97c0fc07eb6800c30f25b2cf2..d4e49c89e82a4ea1c2b65c592c39d14273cdf636 100644 (file)
@@ -189,6 +189,10 @@ my %test_parameters = (
                         ' cxx_define_varies:__STDC_NO_VLA__' .
                         ' cxx_cv_varies:cxx_vararrays]')
   },
+  AC_C_FLEXIBLE_ARRAY_MEMBER => {
+    test_parameters => ('[cxx_define_varies:FLEXIBLE_ARRAY_MEMBER' .
+                        ' cxx_cv_varies:cxx_flexmember]')
+  },
 
   # stdbool.h is supposed to be includable from C++, per C++2011
   # [support.runtime], but the type _Bool was not added to the C++