From: Jonathan Wakely Date: Thu, 3 Mar 2022 22:20:32 +0000 (+0000) Subject: libstdc++: Fix test failure on AIX X-Git-Tag: basepoints/gcc-13~844 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64cdf49962996747b4c5687a705551d5fc61fac8;p=thirdparty%2Fgcc.git libstdc++: Fix test failure on AIX This fixes a test failure due to a non-reserved name in an AIX system header (included via ). That name clashes with one of the names we check our own headers for, so skip checking that name on AIX. libstdc++-v3/ChangeLog: * testsuite/17_intro/names.cc (func): Undef on AIX. --- diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index 1f7f83da8fa7..ede2fe8caa74 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -203,6 +203,8 @@ #undef y // defines vario::v #undef v +// defines trb::func and cputime_tmr::func +#undef func #endif #ifdef __APPLE__