Fix 22_locale/locale/cons/12658_thread-2.cc on hppa.
[official-gcc.git] / libstdc++-v3 / testsuite / 17_intro / names_pstl.cc
blob019e4774ff2526a7dae36c77844353c347c57677
1 // { dg-do compile { target c++17 } }
2 // { dg-require-effective-target tbb_backend }
3 // { dg-add-options no_pch }
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>