mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-30 06:25:27 +08:00
libstdc++: Skip PSTL tests when installed TBB is too old [PR 96718]
These tests do not actually require TBB, because they only inspect the feature test macros present in the headers. However, if TBB is installed then its headers will be included, and the version will be checked. If the version is too old, compilation fails due to a #error directive. This change disables the tests if TBB is not present, so that we skip them instead of failing. libstdc++-v3/ChangeLog: PR libstdc++/96718 * testsuite/25_algorithms/pstl/feature_test-2.cc: Require tbb-backend effective target. * testsuite/25_algorithms/pstl/feature_test-3.cc: Likewise. * testsuite/25_algorithms/pstl/feature_test-5.cc: Likewise. * testsuite/25_algorithms/pstl/feature_test.cc: Likewise.
This commit is contained in:
parent
388cb292a9
commit
988fb2f597
@ -17,6 +17,7 @@
|
||||
|
||||
// { dg-options "-std=gnu++17" }
|
||||
// { dg-do preprocess { target c++17 } }
|
||||
// { dg-require-effective-target tbb-backend }
|
||||
|
||||
#include <numeric>
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// { dg-options "-std=gnu++17" }
|
||||
// { dg-do preprocess { target c++17 } }
|
||||
// { dg-require-effective-target tbb-backend }
|
||||
|
||||
#include <execution>
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// { dg-options "-std=gnu++17" }
|
||||
// { dg-do preprocess { target c++17 } }
|
||||
// { dg-require-effective-target tbb-backend }
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
// { dg-options "-std=gnu++17" }
|
||||
// { dg-do preprocess { target c++17 } }
|
||||
// { dg-require-effective-target tbb-backend }
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user