| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
// { dg-require-effective-target tbb_backend } |
| 3 |
// { dg-add-options no_pch } |
| 4 |
|
| 5 |
// The TBB headers use non-reserved names (because they're not part of the |
| 6 |
// implementation) so we need to include them before the macro definitions |
| 7 |
// in names.cc: |
| 8 |
#if __has_include(<tbb/tbb.h>) |
| 9 |
# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 |
| 10 |
# include <tbb/tbb.h> |
| 11 |
#endif |
| 12 |
// Now we can define the macros to poison uses of non-reserved names: |
| 13 |
#include "names.cc" |
| 14 |
// And finally, include all the headers that have PSTL content: |
| 15 |
#include <execution> |
| 16 |
#include <algorithm> |
| 17 |
#include <memory> |
| 18 |
#include <numeric> |