]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: a few more hostedlib adjustments
authorAlexandre Oliva <oliva@adacore.com>
Sat, 14 Sep 2024 00:42:41 +0000 (21:42 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sat, 14 Sep 2024 00:42:41 +0000 (21:42 -0300)
This adjusts some recently-added tests that won't compile without a
hostedlib libstdc++, missed in the patch that just went in, and also
an old test that I'd missed because it also failed in my baseline.

for  gcc/testsuite/ChangeLog

* g++.dg/coroutines/pr108620.C: Skip if !hostedlib because of
unavailable headers.
* g++.dg/other/profile1.C: Likewise.
* g++.dg/ext/pragma-unroll-lambda-lto.C: Skip if !hostedlib
because of unavailable declarations.

gcc/testsuite/g++.dg/coroutines/pr108620.C
gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
gcc/testsuite/g++.dg/other/profile1.C

index e8016b9f8a233314df3c7cd39aecd33b074fbc8a..22bf0c18bac45246716c9e5f44bdd01a46513e26 100644 (file)
@@ -1,3 +1,5 @@
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
+
 // https://gcc.gnu.org/PR108620
 #include <iostream>
 #include <memory>
index 144c4c3269249aaabefc2d09491b8f9d11254bcc..64cdf90f34d3393b8ba1121eb6eba92d8b1cd583 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do link { target c++11 } }
 // { dg-options "-O2 -flto -fdump-rtl-loop2_unroll" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib rand" { ! hostedlib } }
 
 #include <cstdlib>
 
index a4bf6b3d0fea7a9855a8ee08c763456e68776455..99844373189e05704c6f355f9bcda36d95512e8a 100644 (file)
@@ -2,6 +2,7 @@
 // { dg-do run }
 // { dg-require-profiling "" }
 // { dg-options "-fnon-call-exceptions -fprofile-arcs" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>