From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 62FEE385781F; Thu, 16 Feb 2023 11:12:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62FEE385781F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676545940; bh=3TvCEKQTxP/CTnSJg2E10BmN8k9NjgFmxVdzHXnWfxo=; h=From:To:Subject:Date:From; b=qOA65dBoYqmWRVI8je4+DL8tzPnj75JqislwllW35NdqE3dTD1X1G7kNwyv36K46W srlCV8CfE4jetjtfuD1VrZ6800OrYnfB17BMGJiV8uLfViONVLh39AaJJxdwadcCVt WCRf1Hec/vKGQu25atqL+X4ln0kQf1eZAA5Y1Z1c= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] [libstdc++] [testsuite] intro/names.cc: undef func on vxw7krn X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: a557b77dff3d274e1b99b2c51d43bb042602c5fa X-Git-Newrev: 4fcf3648860af2d156a43cd18e07eeebe69cb7d3 Message-Id: <20230216111220.62FEE385781F@sourceware.org> Date: Thu, 16 Feb 2023 11:12:20 +0000 (GMT) List-Id: https://gcc.gnu.org/g:4fcf3648860af2d156a43cd18e07eeebe69cb7d3 commit 4fcf3648860af2d156a43cd18e07eeebe69cb7d3 Author: Alexandre Oliva Date: Thu Feb 16 06:35:42 2023 -0300 [libstdc++] [testsuite] intro/names.cc: undef func on vxw7krn 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. Diff: --- libstdc++-v3/testsuite/17_intro/names.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index d3e0db9bab6..c2d67ebe012 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -329,6 +329,8 @@ #undef d #undef e #undef f +// in sysLib.h, func appears as a formal parameter name +#undef func #endif // __RTP__ #endif // VxWorks Major >= 7