Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++11 %s -o - | FileCheck --check-prefix=CHECK-11 %s |
Douglas Gregor | e87c5bd | 2013-05-02 05:28:32 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -E -triple armv7-apple-darwin -std=c++11 %s -o - | FileCheck --check-prefix=CHECK-NO-TLS %s |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -E -triple x86_64-linux-gnu %s -o - | FileCheck --check-prefix=CHECK-NO-11 %s |
| 4 | // RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++1y %s -o - | FileCheck --check-prefix=CHECK-1Y %s |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 5 | |
David Chisnall | 7a7ee30 | 2012-01-16 17:27:18 +0000 | [diff] [blame] | 6 | #if __has_feature(cxx_atomic) |
| 7 | int has_atomic(); |
| 8 | #else |
| 9 | int no_atomic(); |
| 10 | #endif |
| 11 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 12 | // CHECK-1Y: has_atomic |
| 13 | // CHECK-11: has_atomic |
| 14 | // CHECK-NO-11: no_atomic |
David Chisnall | 7a7ee30 | 2012-01-16 17:27:18 +0000 | [diff] [blame] | 15 | |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 16 | #if __has_feature(cxx_lambdas) |
Douglas Gregor | c78e259 | 2011-01-26 15:36:03 +0000 | [diff] [blame] | 17 | int has_lambdas(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 18 | #else |
| 19 | int no_lambdas(); |
| 20 | #endif |
| 21 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 22 | // CHECK-1Y: has_lambdas |
| 23 | // CHECK-11: has_lambdas |
| 24 | // CHECK-NO-11: no_lambdas |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 25 | |
| 26 | |
| 27 | #if __has_feature(cxx_nullptr) |
Sean Hunt | 1248451 | 2010-01-13 08:58:42 +0000 | [diff] [blame] | 28 | int has_nullptr(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 29 | #else |
| 30 | int no_nullptr(); |
| 31 | #endif |
| 32 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 33 | // CHECK-1Y: has_nullptr |
| 34 | // CHECK-11: has_nullptr |
| 35 | // CHECK-NO-11: no_nullptr |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 36 | |
| 37 | |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 38 | #if __has_feature(cxx_decltype) |
Sean Hunt | 1248451 | 2010-01-13 08:58:42 +0000 | [diff] [blame] | 39 | int has_decltype(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 40 | #else |
| 41 | int no_decltype(); |
| 42 | #endif |
| 43 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 44 | // CHECK-1Y: has_decltype |
| 45 | // CHECK-11: has_decltype |
| 46 | // CHECK-NO-11: no_decltype |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 47 | |
| 48 | |
Douglas Gregor | 316551f | 2012-04-10 20:00:33 +0000 | [diff] [blame] | 49 | #if __has_feature(cxx_decltype_incomplete_return_types) |
| 50 | int has_decltype_incomplete_return_types(); |
| 51 | #else |
| 52 | int no_decltype_incomplete_return_types(); |
| 53 | #endif |
| 54 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 55 | // CHECK-1Y: has_decltype_incomplete_return_types |
| 56 | // CHECK-11: has_decltype_incomplete_return_types |
| 57 | // CHECK-NO-11: no_decltype_incomplete_return_types |
Douglas Gregor | 316551f | 2012-04-10 20:00:33 +0000 | [diff] [blame] | 58 | |
| 59 | |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 60 | #if __has_feature(cxx_auto_type) |
Douglas Gregor | c78e259 | 2011-01-26 15:36:03 +0000 | [diff] [blame] | 61 | int has_auto_type(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 62 | #else |
| 63 | int no_auto_type(); |
| 64 | #endif |
| 65 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 66 | // CHECK-1Y: has_auto_type |
| 67 | // CHECK-11: has_auto_type |
| 68 | // CHECK-NO-11: no_auto_type |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 69 | |
| 70 | |
Richard Smith | 6a4e73c | 2011-04-03 14:12:46 +0000 | [diff] [blame] | 71 | #if __has_feature(cxx_trailing_return) |
| 72 | int has_trailing_return(); |
| 73 | #else |
| 74 | int no_trailing_return(); |
| 75 | #endif |
| 76 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 77 | // CHECK-1Y: has_trailing_return |
| 78 | // CHECK-11: has_trailing_return |
| 79 | // CHECK-NO-11: no_trailing_return |
Richard Smith | 6a4e73c | 2011-04-03 14:12:46 +0000 | [diff] [blame] | 80 | |
| 81 | |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 82 | #if __has_feature(cxx_attributes) |
Douglas Gregor | c78e259 | 2011-01-26 15:36:03 +0000 | [diff] [blame] | 83 | int has_attributes(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 84 | #else |
| 85 | int no_attributes(); |
| 86 | #endif |
| 87 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 88 | // CHECK-1Y: has_attributes |
| 89 | // CHECK-11: has_attributes |
| 90 | // CHECK-NO-11: no_attributes |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 91 | |
| 92 | |
| 93 | #if __has_feature(cxx_static_assert) |
Sean Hunt | 1248451 | 2010-01-13 08:58:42 +0000 | [diff] [blame] | 94 | int has_static_assert(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 95 | #else |
| 96 | int no_static_assert(); |
| 97 | #endif |
| 98 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 99 | // CHECK-1Y: has_static_assert |
| 100 | // CHECK-11: has_static_assert |
| 101 | // CHECK-NO-11: no_static_assert |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 102 | |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 103 | #if __has_feature(cxx_deleted_functions) |
Douglas Gregor | c78e259 | 2011-01-26 15:36:03 +0000 | [diff] [blame] | 104 | int has_deleted_functions(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 105 | #else |
| 106 | int no_deleted_functions(); |
| 107 | #endif |
| 108 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 109 | // CHECK-1Y: has_deleted_functions |
| 110 | // CHECK-11: has_deleted_functions |
| 111 | // CHECK-NO-11: no_deleted_functions |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 112 | |
Douglas Gregor | f695a69 | 2011-11-01 01:19:34 +0000 | [diff] [blame] | 113 | #if __has_feature(cxx_defaulted_functions) |
| 114 | int has_defaulted_functions(); |
| 115 | #else |
| 116 | int no_defaulted_functions(); |
| 117 | #endif |
| 118 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 119 | // CHECK-1Y: has_defaulted_functions |
| 120 | // CHECK-11: has_defaulted_functions |
| 121 | // CHECK-NO-11: no_defaulted_functions |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 122 | |
| 123 | #if __has_feature(cxx_rvalue_references) |
Douglas Gregor | c78e259 | 2011-01-26 15:36:03 +0000 | [diff] [blame] | 124 | int has_rvalue_references(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 125 | #else |
| 126 | int no_rvalue_references(); |
| 127 | #endif |
| 128 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 129 | // CHECK-1Y: has_rvalue_references |
| 130 | // CHECK-11: has_rvalue_references |
| 131 | // CHECK-NO-11: no_rvalue_references |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 132 | |
| 133 | |
| 134 | #if __has_feature(cxx_variadic_templates) |
Douglas Gregor | c78e259 | 2011-01-26 15:36:03 +0000 | [diff] [blame] | 135 | int has_variadic_templates(); |
Sean Hunt | 4ef4c6b | 2010-01-13 08:31:49 +0000 | [diff] [blame] | 136 | #else |
| 137 | int no_variadic_templates(); |
| 138 | #endif |
| 139 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 140 | // CHECK-1Y: has_variadic_templates |
| 141 | // CHECK-11: has_variadic_templates |
| 142 | // CHECK-NO-11: no_variadic_templates |
Sebastian Redl | f6c0977 | 2010-08-31 23:28:47 +0000 | [diff] [blame] | 143 | |
| 144 | |
| 145 | #if __has_feature(cxx_inline_namespaces) |
Douglas Gregor | c78e259 | 2011-01-26 15:36:03 +0000 | [diff] [blame] | 146 | int has_inline_namespaces(); |
Sebastian Redl | f6c0977 | 2010-08-31 23:28:47 +0000 | [diff] [blame] | 147 | #else |
| 148 | int no_inline_namespaces(); |
| 149 | #endif |
| 150 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 151 | // CHECK-1Y: has_inline_namespaces |
| 152 | // CHECK-11: has_inline_namespaces |
| 153 | // CHECK-NO-11: no_inline_namespaces |
Douglas Gregor | 56209ff | 2011-01-26 21:25:54 +0000 | [diff] [blame] | 154 | |
Richard Smith | a391a46 | 2011-04-15 15:14:40 +0000 | [diff] [blame] | 155 | |
| 156 | #if __has_feature(cxx_range_for) |
| 157 | int has_range_for(); |
| 158 | #else |
| 159 | int no_range_for(); |
| 160 | #endif |
| 161 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 162 | // CHECK-1Y: has_range_for |
| 163 | // CHECK-11: has_range_for |
| 164 | // CHECK-NO-11: no_range_for |
Richard Smith | a391a46 | 2011-04-15 15:14:40 +0000 | [diff] [blame] | 165 | |
| 166 | |
Douglas Gregor | 56209ff | 2011-01-26 21:25:54 +0000 | [diff] [blame] | 167 | #if __has_feature(cxx_reference_qualified_functions) |
| 168 | int has_reference_qualified_functions(); |
| 169 | #else |
| 170 | int no_reference_qualified_functions(); |
| 171 | #endif |
| 172 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 173 | // CHECK-1Y: has_reference_qualified_functions |
| 174 | // CHECK-11: has_reference_qualified_functions |
| 175 | // CHECK-NO-11: no_reference_qualified_functions |
Douglas Gregor | 56209ff | 2011-01-26 21:25:54 +0000 | [diff] [blame] | 176 | |
Douglas Gregor | 0750800 | 2011-02-05 20:35:30 +0000 | [diff] [blame] | 177 | #if __has_feature(cxx_default_function_template_args) |
| 178 | int has_default_function_template_args(); |
| 179 | #else |
| 180 | int no_default_function_template_args(); |
| 181 | #endif |
| 182 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 183 | // CHECK-1Y: has_default_function_template_args |
| 184 | // CHECK-11: has_default_function_template_args |
| 185 | // CHECK-NO-11: no_default_function_template_args |
Douglas Gregor | 0750800 | 2011-02-05 20:35:30 +0000 | [diff] [blame] | 186 | |
Sebastian Redl | 4561ecd | 2011-03-15 21:17:12 +0000 | [diff] [blame] | 187 | #if __has_feature(cxx_noexcept) |
| 188 | int has_noexcept(); |
| 189 | #else |
| 190 | int no_noexcept(); |
| 191 | #endif |
| 192 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 193 | // CHECK-1Y: has_noexcept |
| 194 | // CHECK-11: has_noexcept |
| 195 | // CHECK-NO-11: no_noexcept |
Sebastian Redl | 4561ecd | 2011-03-15 21:17:12 +0000 | [diff] [blame] | 196 | |
Anders Carlsson | c8b9f79 | 2011-03-25 15:04:23 +0000 | [diff] [blame] | 197 | #if __has_feature(cxx_override_control) |
| 198 | int has_override_control(); |
| 199 | #else |
| 200 | int no_override_control(); |
| 201 | #endif |
| 202 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 203 | // CHECK-1Y: has_override_control |
| 204 | // CHECK-11: has_override_control |
| 205 | // CHECK-NO-11: no_override_control |
Richard Smith | 3e4c6c4 | 2011-05-05 21:57:07 +0000 | [diff] [blame] | 206 | |
| 207 | #if __has_feature(cxx_alias_templates) |
| 208 | int has_alias_templates(); |
| 209 | #else |
| 210 | int no_alias_templates(); |
| 211 | #endif |
| 212 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 213 | // CHECK-1Y: has_alias_templates |
| 214 | // CHECK-11: has_alias_templates |
| 215 | // CHECK-NO-11: no_alias_templates |
Sebastian Redl | 74e611a | 2011-09-04 18:14:28 +0000 | [diff] [blame] | 216 | |
| 217 | #if __has_feature(cxx_implicit_moves) |
| 218 | int has_implicit_moves(); |
| 219 | #else |
| 220 | int no_implicit_moves(); |
| 221 | #endif |
| 222 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 223 | // CHECK-1Y: has_implicit_moves |
| 224 | // CHECK-11: has_implicit_moves |
| 225 | // CHECK-NO-11: no_implicit_moves |
Peter Collingbourne | fd5f686 | 2011-10-14 23:44:46 +0000 | [diff] [blame] | 226 | |
| 227 | #if __has_feature(cxx_alignas) |
| 228 | int has_alignas(); |
| 229 | #else |
| 230 | int no_alignas(); |
| 231 | #endif |
| 232 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 233 | // CHECK-1Y: has_alignas |
| 234 | // CHECK-11: has_alignas |
| 235 | // CHECK-NO-11: no_alignas |
Douglas Gregor | 172b221 | 2011-11-01 01:23:44 +0000 | [diff] [blame] | 236 | |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 237 | #if __has_feature(cxx_alignof) |
| 238 | int has_alignof(); |
| 239 | #else |
| 240 | int no_alignof(); |
| 241 | #endif |
| 242 | |
| 243 | // CHECK-1Y: has_alignof |
| 244 | // CHECK-11: has_alignof |
| 245 | // CHECK-NO-11: no_alignof |
| 246 | |
Douglas Gregor | 172b221 | 2011-11-01 01:23:44 +0000 | [diff] [blame] | 247 | #if __has_feature(cxx_raw_string_literals) |
| 248 | int has_raw_string_literals(); |
| 249 | #else |
| 250 | int no_raw_string_literals(); |
| 251 | #endif |
| 252 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 253 | // CHECK-1Y: has_raw_string_literals |
| 254 | // CHECK-11: has_raw_string_literals |
| 255 | // CHECK-NO-11: no_raw_string_literals |
Douglas Gregor | 172b221 | 2011-11-01 01:23:44 +0000 | [diff] [blame] | 256 | |
| 257 | #if __has_feature(cxx_unicode_literals) |
| 258 | int has_unicode_literals(); |
| 259 | #else |
| 260 | int no_unicode_literals(); |
| 261 | #endif |
| 262 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 263 | // CHECK-1Y: has_unicode_literals |
| 264 | // CHECK-11: has_unicode_literals |
| 265 | // CHECK-NO-11: no_unicode_literals |
Richard Smith | b5216aa | 2012-02-14 22:56:17 +0000 | [diff] [blame] | 266 | |
| 267 | #if __has_feature(cxx_constexpr) |
| 268 | int has_constexpr(); |
| 269 | #else |
| 270 | int no_constexpr(); |
| 271 | #endif |
| 272 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 273 | // CHECK-1Y: has_constexpr |
| 274 | // CHECK-11: has_constexpr |
| 275 | // CHECK-NO-11: no_constexpr |
Sebastian Redl | d1dc3aa | 2012-02-25 20:51:27 +0000 | [diff] [blame] | 276 | |
| 277 | #if __has_feature(cxx_generalized_initializers) |
| 278 | int has_generalized_initializers(); |
| 279 | #else |
| 280 | int no_generalized_initializers(); |
| 281 | #endif |
| 282 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 283 | // CHECK-1Y: has_generalized_initializers |
| 284 | // CHECK-11: has_generalized_initializers |
| 285 | // CHECK-NO-11: no_generalized_initializers |
Richard Smith | ec92bc7 | 2012-03-03 23:51:05 +0000 | [diff] [blame] | 286 | |
| 287 | #if __has_feature(cxx_unrestricted_unions) |
| 288 | int has_unrestricted_unions(); |
| 289 | #else |
| 290 | int no_unrestricted_unions(); |
| 291 | #endif |
| 292 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 293 | // CHECK-1Y: has_unrestricted_unions |
| 294 | // CHECK-11: has_unrestricted_unions |
| 295 | // CHECK-NO-11: no_unrestricted_unions |
Richard Smith | 9c1dda7 | 2012-03-09 08:41:27 +0000 | [diff] [blame] | 296 | |
| 297 | #if __has_feature(cxx_user_literals) |
| 298 | int has_user_literals(); |
| 299 | #else |
| 300 | int no_user_literals(); |
| 301 | #endif |
| 302 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 303 | // CHECK-1Y: has_user_literals |
| 304 | // CHECK-11: has_user_literals |
| 305 | // CHECK-NO-11: no_user_literals |
Douglas Gregor | 7b156dd | 2012-04-04 00:48:39 +0000 | [diff] [blame] | 306 | |
| 307 | #if __has_feature(cxx_local_type_template_args) |
| 308 | int has_local_type_template_args(); |
| 309 | #else |
| 310 | int no_local_type_template_args(); |
| 311 | #endif |
| 312 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 313 | // CHECK-1Y: has_local_type_template_args |
| 314 | // CHECK-11: has_local_type_template_args |
| 315 | // CHECK-NO-11: no_local_type_template_args |
Richard Smith | e6e68b5 | 2013-04-19 17:00:31 +0000 | [diff] [blame] | 316 | |
| 317 | #if __has_feature(cxx_inheriting_constructors) |
| 318 | int has_inheriting_constructors(); |
| 319 | #else |
| 320 | int no_inheriting_constructors(); |
| 321 | #endif |
| 322 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 323 | // CHECK-1Y: has_inheriting_constructors |
| 324 | // CHECK-11: has_inheriting_constructors |
| 325 | // CHECK-NO-11: no_inheriting_constructors |
Richard Smith | e6e68b5 | 2013-04-19 17:00:31 +0000 | [diff] [blame] | 326 | |
| 327 | #if __has_feature(cxx_thread_local) |
| 328 | int has_thread_local(); |
| 329 | #else |
| 330 | int no_thread_local(); |
| 331 | #endif |
| 332 | |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 333 | // CHECK-1Y: has_thread_local |
| 334 | // CHECK-11: has_thread_local |
| 335 | // CHECK-NO-11: no_thread_local |
Douglas Gregor | e87c5bd | 2013-05-02 05:28:32 +0000 | [diff] [blame] | 336 | // CHECK-NO-TLS: no_thread_local |
Richard Smith | 7f0ffb3 | 2013-05-07 19:32:56 +0000 | [diff] [blame] | 337 | |
| 338 | // === C++1y features === |
| 339 | |
| 340 | #if __has_feature(cxx_binary_literals) |
| 341 | int has_binary_literals(); |
| 342 | #else |
| 343 | int no_binary_literals(); |
| 344 | #endif |
| 345 | |
| 346 | // CHECK-1Y: has_binary_literals |
| 347 | // CHECK-11: no_binary_literals |
| 348 | // CHECK-NO-11: no_binary_literals |
| 349 | |
| 350 | #if __has_feature(cxx_aggregate_nsdmi) |
| 351 | int has_aggregate_nsdmi(); |
| 352 | #else |
| 353 | int no_aggregate_nsdmi(); |
| 354 | #endif |
| 355 | |
| 356 | // CHECK-1Y: has_aggregate_nsdmi |
| 357 | // CHECK-11: no_aggregate_nsdmi |
| 358 | // CHECK-NO-11: no_aggregate_nsdmi |
Richard Smith | f45c299 | 2013-05-12 03:09:35 +0000 | [diff] [blame] | 359 | |
| 360 | #if __has_feature(cxx_return_type_deduction) |
| 361 | int has_return_type_deduction(); |
| 362 | #else |
| 363 | int no_return_type_deduction(); |
| 364 | #endif |
| 365 | |
| 366 | // CHECK-1Y: has_return_type_deduction |
| 367 | // CHECK-11: no_return_type_deduction |
| 368 | // CHECK-NO-11: no_return_type_deduction |
Richard Smith | a4fb339 | 2013-07-24 17:41:31 +0000 | [diff] [blame] | 369 | |
| 370 | #if __has_feature(cxx_contextual_conversions) |
| 371 | int has_contextual_conversions(); |
| 372 | #else |
| 373 | int no_contextual_conversions(); |
| 374 | #endif |
| 375 | |
| 376 | // CHECK-1Y: has_contextual_conversions |
| 377 | // CHECK-11: no_contextual_conversions |
| 378 | // CHECK-NO-11: no_contextual_conversions |
| 379 | |
| 380 | #if __has_feature(cxx_relaxed_constexpr) |
| 381 | int has_relaxed_constexpr(); |
| 382 | #else |
| 383 | int no_relaxed_constexpr(); |
| 384 | #endif |
| 385 | |
| 386 | // CHECK-1Y: has_relaxed_constexpr |
| 387 | // CHECK-11: no_relaxed_constexpr |
| 388 | // CHECK-NO-11: no_relaxed_constexpr |
Richard Smith | 629bc52 | 2013-09-27 20:19:41 +0000 | [diff] [blame] | 389 | |
| 390 | #if __has_feature(cxx_variable_templates) |
| 391 | int has_variable_templates(); |
| 392 | #else |
| 393 | int no_variable_templates(); |
| 394 | #endif |
| 395 | |
| 396 | // CHECK-1Y: has_variable_templates |
| 397 | // CHECK-11: no_variable_templates |
| 398 | // CHECK-NO-11: no_variable_templates |
Richard Smith | 44868f5 | 2013-09-28 04:37:56 +0000 | [diff] [blame] | 399 | |
| 400 | #if __has_feature(cxx_init_captures) |
| 401 | int has_init_captures(); |
| 402 | #else |
| 403 | int no_init_captures(); |
| 404 | #endif |
| 405 | |
| 406 | // CHECK-1Y: has_init_captures |
| 407 | // CHECK-11: no_init_captures |
| 408 | // CHECK-NO-11: no_init_captures |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 409 | |
| 410 | #if __has_feature(cxx_decltype_auto) |
| 411 | int has_decltype_auto(); |
| 412 | #else |
| 413 | int no_decltype_auto(); |
| 414 | #endif |
| 415 | |
| 416 | // CHECK-1Y: has_decltype_auto |
| 417 | // CHECK-11: no_decltype_auto |
| 418 | // CHECK-NO-11: no_decltype_auto |
| 419 | |
| 420 | #if __has_feature(cxx_generic_lambdas) |
| 421 | int has_generic_lambdas(); |
| 422 | #else |
| 423 | int no_generic_lambdas(); |
| 424 | #endif |
| 425 | |
| 426 | // CHECK-1Y: has_generic_lambdas |
| 427 | // CHECK-11: no_generic_lambdas |
| 428 | // CHECK-NO-11: no_generic_lambdas |