https://gcc.gnu.org/g:def933af3cb381b423ba15f331ed51f2d255898f
commit r15-6979-gdef933af3cb381b423ba15f331ed51f2d255898f Author: Alexandre Oliva <ol...@adacore.com> Date: Thu Jan 16 20:19:38 2025 -0300 [testsuite] skip test on non-hosted libstdc++ [PR113994] Tests that include <string> need to be skipped when libstdc++ is built in freestanding mode. for gcc/testsuite/ChangeLog PR rtl-optimization/113994 * g++.dg/torture/pr113994.C: Require hosted libstdc++. Diff: --- gcc/testsuite/g++.dg/torture/pr113994.C | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.dg/torture/pr113994.C b/gcc/testsuite/g++.dg/torture/pr113994.C index c9c186d45ee7..bd749c4ada8a 100644 --- a/gcc/testsuite/g++.dg/torture/pr113994.C +++ b/gcc/testsuite/g++.dg/torture/pr113994.C @@ -1,5 +1,6 @@ // PR rtl-optimization/113994 // { dg-do run } +// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } #include <string>