This testcase uses features not available when libstdc++ doesn't have
the hostedlib bits enabled.

I've tested this with aarch64-elf with trunk and gcc-15.
Ok for trunk?  Ok for gcc-15?


for  gcc/testsuite/ChangeLog

        PR tree-optimization/123729
        * g++.dg/torture/pr123729.C: Require hostedlib.
---
 gcc/testsuite/g++.dg/torture/pr123729.C |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/g++.dg/torture/pr123729.C 
b/gcc/testsuite/g++.dg/torture/pr123729.C
index 1e12c680f299e..6b964c8380af7 100644
--- a/gcc/testsuite/g++.dg/torture/pr123729.C
+++ b/gcc/testsuite/g++.dg/torture/pr123729.C
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-additional-options "-std=gnu++20" }
+// { dg-skip-if "requires hosted libstdc++ for csetjmp and iostream" { ! 
hostedlib } }
 
 #include <csetjmp>
 #include <iostream>

-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to