diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-02-22 14:35:13 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-02-22 14:35:13 -0300 |
commit | 937692f20d44e41b340b54cb0e0006f5cabd070c (patch) | |
tree | a711329faa9c4443e1c4ee3fa8da4b835d9df1af /libstdc++-v3/testsuite/17_intro | |
parent | aee5ee35602e0098c2ae16fa2fc9c8845caf92ed (diff) | |
download | gcc-937692f20d44e41b340b54cb0e0006f5cabd070c.zip gcc-937692f20d44e41b340b54cb0e0006f5cabd070c.tar.gz gcc-937692f20d44e41b340b54cb0e0006f5cabd070c.tar.bz2 |
[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.
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro')
-rw-r--r-- | libstdc++-v3/testsuite/17_intro/names.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index afa7491..9932dea 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -346,6 +346,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 |