[libstdc++] [testsuite] intro/names.cc: undef func on vxw7krn
authorAlexandre Oliva <oliva@adacore.com>
Wed, 22 Feb 2023 17:35:13 +0000 (14:35 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 22 Feb 2023 17:35:13 +0000 (14:35 -0300)
The '#define func' added in 2021, to test that system headers don't
violate the user namespace, exposes such a bug in the vxworks sysLib.h
header, so add yet another such annotated workaround.

for  libstdc++-v3/ChangeLog

* testsuite/17_intro/names.cc: Undef func on vxworks >= 7 in
kernel mode.

libstdc++-v3/testsuite/17_intro/names.cc

index afa7491..9932dea 100644 (file)
 #undef d
 #undef e
 #undef f
+// in sysLib.h, func appears as a formal parameter name
+#undef func
 #endif // __RTP__
 
 #endif // VxWorks Major >= 7