]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix test that fails due to name clash with old glibc [PR107979]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 5 Dec 2022 21:44:26 +0000 (21:44 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 6 Dec 2022 21:38:46 +0000 (21:38 +0000)
commit2a23b93f944fa78d4284eb5687051c224e5ab08f
treee14c1b5edfd308fc6749b4b4ebe41937597ad302
parent9cce91a63dcc40cb39e68f6a771e891e51c51946
libstdc++: Fix test that fails due to name clash with old glibc [PR107979]

This test was recently modified to check that the library doesn't use
__unused anywhere, because that's a macro in newlib. But it's also a
macro in old versions of glibc, so the test now fails for those targets.
Disable that check for those targets as well as for newlib.

libstdc++-v3/ChangeLog:

PR libstdc++/107979
* testsuite/17_intro/names.cc: Do not check __unused on old
Glibc versions.
libstdc++-v3/testsuite/17_intro/names.cc