From: Jonathan Wakely Date: Tue, 14 Mar 2017 20:50:16 +0000 (+0000) Subject: Fix libstdc++ reserved names test to pass on AIX X-Git-Tag: releases/gcc-5.5.0~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69ba2dc5dcc21781f8f7f4410c02fe093048edd0;p=thirdparty%2Fgcc.git Fix libstdc++ reserved names test to pass on AIX * testsuite/17_intro/names.cc: Undefine macros that clash with identifiers in AIX system headers. From-SVN: r246143 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 50af6a14a50e..01446915800a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-03-14 Jonathan Wakely + + * testsuite/17_intro/names.cc: Undefine macros that clash with + identifiers in AIX system headers. + 2017-03-13 Ville Voutilainen PR libstdc++/80034 diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index a7d9a6bced34..c52586156630 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -98,4 +98,13 @@ #define x ( #define y ( #define z ( + +#ifdef _AIX +// See https://gcc.gnu.org/ml/libstdc++/2017-03/msg00015.html +#undef f +#undef r +#undef x +#undef y +#endif + #include