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/pr113994.C: Require hosted libstdc++. --- 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 c9c186d45ee7d..bd749c4ada8a6 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> -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity Excluding neuro-others for not behaving ""normal"" is *not* inclusive