| 1 |
// { dg-do preprocess { target c++14 } } |
| 2 |
// { dg-add-options no_pch } |
| 3 |
|
| 4 |
#include <utility> |
| 5 |
#include <tuple> |
| 6 |
#include <memory> |
| 7 |
#include <functional> |
| 8 |
#include <type_traits> |
| 9 |
#include <chrono> |
| 10 |
#include <string> |
| 11 |
#include <complex> |
| 12 |
#include <algorithm> |
| 13 |
#include <iomanip> |
| 14 |
#include <shared_mutex> |
| 15 |
#include <map> |
| 16 |
#include <set> |
| 17 |
#include <iterator> |
| 18 |
|
| 19 |
#ifndef __cpp_lib_integer_sequence |
| 20 |
# error "__cpp_lib_integer_sequence" |
| 21 |
#elif __cpp_lib_integer_sequence != 201304 |
| 22 |
# error "__cpp_lib_integer_sequence != 201304" |
| 23 |
#endif |
| 24 |
|
| 25 |
#ifndef __cpp_lib_exchange_function |
| 26 |
# error "__cpp_lib_exchange_function" |
| 27 |
#elif __cpp_lib_exchange_function != 201304 |
| 28 |
# error "__cpp_lib_exchange_function != 201304" |
| 29 |
#endif |
| 30 |
|
| 31 |
#ifndef __cpp_lib_tuples_by_type |
| 32 |
# error "__cpp_lib_tuples_by_type" |
| 33 |
#elif __cpp_lib_tuples_by_type != 201304 |
| 34 |
# error "__cpp_lib_tuples_by_type != 201304" |
| 35 |
#endif |
| 36 |
|
| 37 |
#ifndef __cpp_lib_make_unique |
| 38 |
# error "__cpp_lib_make_unique" |
| 39 |
#elif __cpp_lib_make_unique != 201304 |
| 40 |
# error "__cpp_lib_make_unique != 201304" |
| 41 |
#endif |
| 42 |
|
| 43 |
#ifndef __cpp_lib_transparent_operators |
| 44 |
# error "__cpp_lib_transparent_operators" |
| 45 |
#elif __cpp_lib_transparent_operators < 201210 |
| 46 |
# error "__cpp_lib_transparent_operators < 201210" |
| 47 |
#endif |
| 48 |
|
| 49 |
#ifndef __cpp_lib_result_of_sfinae |
| 50 |
# error "__cpp_lib_result_of_sfinae" |
| 51 |
#elif __cpp_lib_result_of_sfinae != 201210 |
| 52 |
# error "__cpp_lib_result_of_sfinae != 201210" |
| 53 |
#endif |
| 54 |
|
| 55 |
#ifndef __cpp_lib_integral_constant_callable |
| 56 |
# error "__cpp_lib_integral_constant_callable" |
| 57 |
#elif __cpp_lib_integral_constant_callable != 201304 |
| 58 |
# error "__cpp_lib_integral_constant_callable != 201304" |
| 59 |
#endif |
| 60 |
|
| 61 |
#ifndef __cpp_lib_transformation_trait_aliases |
| 62 |
# error "__cpp_lib_transformation_trait_aliases" |
| 63 |
#elif __cpp_lib_transformation_trait_aliases != 201304 |
| 64 |
# error "__cpp_lib_transformation_trait_aliases != 201304" |
| 65 |
#endif |
| 66 |
|
| 67 |
#ifndef __cpp_lib_chrono_udls |
| 68 |
# error "__cpp_lib_chrono_udls" |
| 69 |
#elif __cpp_lib_chrono_udls != 201304 |
| 70 |
# error "__cpp_lib_chrono_udls != 201304" |
| 71 |
#endif |
| 72 |
|
| 73 |
#ifndef __cpp_lib_string_udls |
| 74 |
# error "__cpp_lib_string_udls" |
| 75 |
#elif __cpp_lib_string_udls != 201304 |
| 76 |
# error "__cpp_lib_string_udls != 201304" |
| 77 |
#endif |
| 78 |
|
| 79 |
#ifndef __cpp_lib_complex_udls |
| 80 |
# error "__cpp_lib_complex_udls" |
| 81 |
#elif __cpp_lib_complex_udls != 201309 |
| 82 |
# error "__cpp_lib_complex_udls != 201309" |
| 83 |
#endif |
| 84 |
|
| 85 |
#ifndef __cpp_lib_generic_associative_lookup |
| 86 |
# error "__cpp_lib_generic_associative_lookup" |
| 87 |
#elif __cpp_lib_generic_associative_lookup != 201304 |
| 88 |
# error "__cpp_lib_generic_associative_lookup != 201304" |
| 89 |
#endif |
| 90 |
|
| 91 |
//#ifndef __cpp_lib_null_iterators |
| 92 |
//# error "__cpp_lib_null_iterators" |
| 93 |
//#elif __cpp_lib_null_iterators != 201304 |
| 94 |
//# error "__cpp_lib_null_iterators != 201304" |
| 95 |
//#endif |
| 96 |
|
| 97 |
#ifndef __cpp_lib_robust_nonmodifying_seq_ops |
| 98 |
# error "__cpp_lib_robust_nonmodifying_seq_ops" |
| 99 |
#elif __cpp_lib_robust_nonmodifying_seq_ops != 201304 |
| 100 |
# error "__cpp_lib_robust_nonmodifying_seq_ops != 201304" |
| 101 |
#endif |
| 102 |
|
| 103 |
#ifndef __cpp_lib_quoted_string_io |
| 104 |
# error "__cpp_lib_quoted_string_io" |
| 105 |
#elif __cpp_lib_quoted_string_io != 201304 |
| 106 |
# error "__cpp_lib_quoted_string_io != 201304" |
| 107 |
#endif |
| 108 |
|
| 109 |
#if !__has_include(<shared_mutex>) |
| 110 |
# error "<shared_mutex>" |
| 111 |
#endif |
| 112 |
|
| 113 |
#if defined(_GLIBCXX_HAS_GTHREADS) |
| 114 |
# ifndef __cpp_lib_shared_timed_mutex |
| 115 |
# error "__cpp_lib_shared_timed_mutex" |
| 116 |
# elif __cpp_lib_shared_timed_mutex != 201402 |
| 117 |
# error "__cpp_lib_shared_timed_mutex != 201402" |
| 118 |
# endif |
| 119 |
#endif |
| 120 |
|
| 121 |
#ifndef __cpp_lib_is_final |
| 122 |
# error "__cpp_lib_is_final" |
| 123 |
#elif __cpp_lib_is_final != 201402 |
| 124 |
# error "__cpp_lib_is_final != 201402" |
| 125 |
#endif |
| 126 |
|
| 127 |
#ifndef __cpp_lib_is_null_pointer |
| 128 |
# error "__cpp_lib_is_null_pointer" |
| 129 |
#elif __cpp_lib_is_null_pointer != 201309 |
| 130 |
# error "__cpp_lib_is_null_pointer != 201309" |
| 131 |
#endif |
| 132 |
|
| 133 |
#ifndef __cpp_lib_make_reverse_iterator |
| 134 |
# error "__cpp_lib_make_reverse_iterator" |
| 135 |
#elif __cpp_lib_make_reverse_iterator != 201402 |
| 136 |
# error "__cpp_lib_make_reverse_iterator != 201402" |
| 137 |
#endif |