diff options
-rw-r--r-- | libstdc++-v3/testsuite/17_intro/names_pstl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/names_pstl.cc b/libstdc++-v3/testsuite/17_intro/names_pstl.cc index 42ce098..019e477 100644 --- a/libstdc++-v3/testsuite/17_intro/names_pstl.cc +++ b/libstdc++-v3/testsuite/17_intro/names_pstl.cc @@ -1,10 +1,12 @@ // { dg-do compile { target c++17 } } -// { dg-additional-options "-DTBB_SUPPRESS_DEPRECATED_MESSAGES=1" { target tbb_backend } } +// { dg-require-effective-target tbb_backend } +// { dg-add-options no_pch } // The TBB headers use non-reserved names (because they're not part of the // implementation) so we need to include them before the macro definitions // in names.cc: #if __has_include(<tbb/tbb.h>) +# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 # include <tbb/tbb.h> #endif // Now we can define the macros to poison uses of non-reserved names: |