From: Zack Weinberg Date: Wed, 4 Feb 2026 17:10:41 +0000 (-0500) Subject: tests: AC_C_FLEXIBLE_ARRAY_MEMBER result can vary between C and C++. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f1a2fc63e4d30f825e0a8542673221204c89c84;p=thirdparty%2Fautoconf.git tests: AC_C_FLEXIBLE_ARRAY_MEMBER result can vary between C and C++. 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 --- diff --git a/tests/mktests.pl b/tests/mktests.pl index 9d358e9d9..d4e49c89e 100644 --- a/tests/mktests.pl +++ b/tests/mktests.pl @@ -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++