aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2024-09-13 21:42:41 -0300
committerAlexandre Oliva <oliva@gnu.org>2024-09-13 21:42:41 -0300
commitb56bd542942ba7bd2020d5824e57d819974bc071 (patch)
tree7d0e64f264446a75aed7f06a11ec8e40e34f0ca6
parentd53c5bca736884ff53023e5a953932e5c65fa706 (diff)
downloadgcc-b56bd542942ba7bd2020d5824e57d819974bc071.zip
gcc-b56bd542942ba7bd2020d5824e57d819974bc071.tar.gz
gcc-b56bd542942ba7bd2020d5824e57d819974bc071.tar.bz2
testsuite: a few more hostedlib adjustments
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.
-rw-r--r--gcc/testsuite/g++.dg/coroutines/pr108620.C2
-rw-r--r--gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C1
-rw-r--r--gcc/testsuite/g++.dg/other/profile1.C1
3 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/coroutines/pr108620.C b/gcc/testsuite/g++.dg/coroutines/pr108620.C
index e8016b9..22bf0c1 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr108620.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr108620.C
@@ -1,3 +1,5 @@
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
+
// https://gcc.gnu.org/PR108620
#include <iostream>
#include <memory>
diff --git a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
index 144c4c3..64cdf90 100644
--- a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
+++ b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
@@ -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>
diff --git a/gcc/testsuite/g++.dg/other/profile1.C b/gcc/testsuite/g++.dg/other/profile1.C
index a4bf6b3..9984437 100644
--- a/gcc/testsuite/g++.dg/other/profile1.C
+++ b/gcc/testsuite/g++.dg/other/profile1.C
@@ -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>