aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libstdc++-v3/testsuite/experimental/feat-cxx14.cc
blob: 2cc31ca03be030c06af9c30cb8484459706439dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// { dg-options "-std=gnu++14" }
// { dg-do compile }

#include <utility>
#include <tuple>
#include <memory>
#include <functional>
#include <type_traits>
#include <chrono>
#include <string>
#include <complex>
#include <iomanip>
#include <shared_mutex>

#ifndef  __cpp_lib_integer_sequence
#  error "__cpp_lib_integer_sequence"
#elif  __cpp_lib_integer_sequence != 201304
#  error "__cpp_lib_integer_sequence != 201304"
#endif

#ifndef  __cpp_lib_exchange_function
#  error "__cpp_lib_exchange_function"
#elif  __cpp_lib_exchange_function != 201304
#  error "__cpp_lib_exchange_function != 201304"
#endif

#ifndef  __cpp_lib_tuples_by_type
#  error "__cpp_lib_tuples_by_type"
#elif  __cpp_lib_tuples_by_type != 201304
#  error "__cpp_lib_tuples_by_type != 201304"
#endif

#ifndef  __cpp_lib_make_unique
#  error "__cpp_lib_make_unique"
#elif  __cpp_lib_make_unique != 201304
#  error "__cpp_lib_make_unique != 201304"
#endif

#ifndef  __cpp_lib_transparent_operators
#  error "__cpp_lib_transparent_operators"
#elif  __cpp_lib_transparent_operators != 201210
#  error "__cpp_lib_transparent_operators != 201210"
#endif

#ifndef  __cpp_lib_result_of_sfinae
#  error "__cpp_lib_result_of_sfinae"
#elif  __cpp_lib_result_of_sfinae != 201210
#  error "__cpp_lib_result_of_sfinae != 201210"
#endif

#ifndef  __cpp_lib_integral_constant_callable
#  error "__cpp_lib_integral_constant_callable"
#elif  __cpp_lib_integral_constant_callable != 201304
#  error "__cpp_lib_integral_constant_callable != 201304"
#endif

#ifndef  __cpp_lib_transformation_trait_aliases
#  error "__cpp_lib_transformation_trait_aliases"
#elif  __cpp_lib_transformation_trait_aliases != 201304
#  error "__cpp_lib_transformation_trait_aliases != 201304"
#endif

#ifndef  __cpp_lib_chrono_udls
#  error "__cpp_lib_chrono_udls"
#elif  __cpp_lib_chrono_udls != 201304
#  error "__cpp_lib_chrono_udls != 201304"
#endif

#ifndef  __cpp_lib_string_udls
#  error "__cpp_lib_string_udls"
#elif  __cpp_lib_string_udls != 201304
#  error "__cpp_lib_string_udls != 201304"
#endif

#ifndef __cpp_lib_complex_udls
#  error "__cpp_lib_complex_udls"
#elif  __cpp_lib_complex_udls != 201309
#  error "__cpp_lib_complex_udls != 201309"
#endif

//#ifndef  __cpp_lib_generic_associative_lookup
//#  error "__cpp_lib_generic_associative_lookup"
//#elif  __cpp_lib_generic_associative_lookup != 201304
//#  error "__cpp_lib_generic_associative_lookup != 201304"
//#endif

//#ifndef  __cpp_lib_null_iterators
//#  error "__cpp_lib_null_iterators"
//#elif  __cpp_lib_null_iterators != 201304
//#  error "__cpp_lib_null_iterators != 201304"
//#endif

#ifndef  __cpp_lib_robust_nonmodifying_seq_ops
#  error "__cpp_lib_robust_nonmodifying_seq_ops"
#elif  __cpp_lib_robust_nonmodifying_seq_ops != 201304
#  error "__cpp_lib_robust_nonmodifying_seq_ops != 201304"
#endif

#ifndef  __cpp_lib_quoted_string_io
#  error "__cpp_lib_quoted_string_io"
#elif  __cpp_lib_quoted_string_io != 201304
#  error "__cpp_lib_quoted_string_io != 201304"
#endif

#if !__has_include(<shared_mutex>)
#  error "<shared_mutex>"
#endif

#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
#  ifndef  __cpp_lib_shared_timed_mutex
#    error "__cpp_lib_shared_timed_mutex"
#  elif  __cpp_lib_shared_timed_mutex != 201402
#    error "__cpp_lib_shared_timed_mutex != 201402"
#  endif
#endif

#ifndef  __cpp_lib_is_final
#  error "__cpp_lib_is_final"
#elif  __cpp_lib_is_final != 201402
#  error "__cpp_lib_is_final != 201402"
#endif