From a0ee5811b12116a7b187ab50817d95b263ac1315 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 8 Jun 2026 18:28:54 -0400 Subject: [PATCH] fix(unittest): preprocess failure when __typeof declarations present #40145 On Debian's ppc64el build, the unittests are failing during preprocess with test/unit/testutil.lua:298: declaration specifier expected near '__typeof' at line 298 test/unit/testutil.lua:282: assertion failed! Running with NVIM_TEST_PRINT_I set shows these lines as being the problem when trying to preprocess test/unit/fixtures/posix.h. 690 extern __typeof (strtold) strtold ; 691 extern __typeof (strtold_l) strtold_l ; 692 extern __typeof (strfroml) strfroml ; 693 extern __typeof (qecvt) qecvt ; 694 extern __typeof (qfcvt) qfcvt ; 695 extern __typeof (qgcvt) qgcvt ; 696 extern __typeof (qecvt_r) qecvt_r ; 697 extern __typeof (qfcvt_r) qfcvt_r ; (cherry picked from commit 6c2f2b73eb1a7e3766c07762dbfce6a53706531c) --- test/unit/testutil.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/testutil.lua b/test/unit/testutil.lua index 7aa2be5d20..36b0405c6b 100644 --- a/test/unit/testutil.lua +++ b/test/unit/testutil.lua @@ -152,6 +152,7 @@ local function filter_complex_blocks(body) or string.find(line, '__f64x2_t') or string.find(line, '__sv_f32_t') or string.find(line, '__sv_f64_t') + or string.find(line, 'extern __typeof') or string.find(line, 'msgpack_zone_push_finalizer') or string.find(line, 'msgpack_unpacker_reserve_buffer') or string.find(line, 'value_init_')