]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [analyzer] [vxworks] define __STDC_WANT_LIB_EXT1__ to 1
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:20:03 +0000 (06:20 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:20:03 +0000 (06:20 -0300)
vxworks' headers use #if instead of #ifdef to test for
__STDC_WANT_LIB_EXT1__, so the definition in the analyzer test
strotok-cppreference.c catches a bug there, but not something it's
meant to catch or that we could fix in GCC, so amend the definition to
sidestep the libc bug.

for  gcc/testsuite/ChangeLog

* c-c++-common/analyzer/strtok-cppreference.c
(__STDC_WANT_LIB_EXT1__): Define to 1.

gcc/testsuite/c-c++-common/analyzer/strtok-cppreference.c

index a396c643f11607d4b7b23d7d78912fadac3262d7..96117276ffc3994a3343e7666ec8ae3730323e26 100644 (file)
@@ -13,7 +13,7 @@
 
 /* { dg-additional-options " -Wno-analyzer-too-complex -Wno-analyzer-symbol-too-complex" } */
 
-#define __STDC_WANT_LIB_EXT1__ 0
+#define __STDC_WANT_LIB_EXT1__ 1
 #include <string.h>
 #include <stdio.h>