2013-05-08 03:32:56 +08:00
|
|
|
// RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++11 %s -o - | FileCheck --check-prefix=CHECK-11 %s
|
2013-05-02 13:28:32 +08:00
|
|
|
// RUN: %clang_cc1 -E -triple armv7-apple-darwin -std=c++11 %s -o - | FileCheck --check-prefix=CHECK-NO-TLS %s
|
2015-08-01 10:55:59 +08:00
|
|
|
// RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++98 %s -o - | FileCheck --check-prefix=CHECK-NO-11 %s
|
2015-05-22 10:57:28 +08:00
|
|
|
// RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++14 %s -o - | FileCheck --check-prefix=CHECK-14 %s
|
|
|
|
// RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++1z %s -o - | FileCheck --check-prefix=CHECK-1Z %s
|
2010-01-13 16:31:49 +08:00
|
|
|
|
2012-01-17 01:27:18 +08:00
|
|
|
#if __has_feature(cxx_atomic)
|
|
|
|
int has_atomic();
|
|
|
|
#else
|
|
|
|
int no_atomic();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_atomic
|
|
|
|
// CHECK-14: has_atomic
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_atomic
|
|
|
|
// CHECK-NO-11: no_atomic
|
2012-01-17 01:27:18 +08:00
|
|
|
|
2010-01-13 16:31:49 +08:00
|
|
|
#if __has_feature(cxx_lambdas)
|
2011-01-26 23:36:03 +08:00
|
|
|
int has_lambdas();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_lambdas();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_lambdas
|
|
|
|
// CHECK-14: has_lambdas
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_lambdas
|
|
|
|
// CHECK-NO-11: no_lambdas
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
#if __has_feature(cxx_nullptr)
|
2010-01-13 16:58:42 +08:00
|
|
|
int has_nullptr();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_nullptr();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_nullptr
|
|
|
|
// CHECK-14: has_nullptr
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_nullptr
|
|
|
|
// CHECK-NO-11: no_nullptr
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
#if __has_feature(cxx_decltype)
|
2010-01-13 16:58:42 +08:00
|
|
|
int has_decltype();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_decltype();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_decltype
|
|
|
|
// CHECK-14: has_decltype
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_decltype
|
|
|
|
// CHECK-NO-11: no_decltype
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
|
2012-04-11 04:00:33 +08:00
|
|
|
#if __has_feature(cxx_decltype_incomplete_return_types)
|
|
|
|
int has_decltype_incomplete_return_types();
|
|
|
|
#else
|
|
|
|
int no_decltype_incomplete_return_types();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_decltype_incomplete_return_types
|
|
|
|
// CHECK-14: has_decltype_incomplete_return_types
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_decltype_incomplete_return_types
|
|
|
|
// CHECK-NO-11: no_decltype_incomplete_return_types
|
2012-04-11 04:00:33 +08:00
|
|
|
|
|
|
|
|
2010-01-13 16:31:49 +08:00
|
|
|
#if __has_feature(cxx_auto_type)
|
2011-01-26 23:36:03 +08:00
|
|
|
int has_auto_type();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_auto_type();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_auto_type
|
|
|
|
// CHECK-14: has_auto_type
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_auto_type
|
|
|
|
// CHECK-NO-11: no_auto_type
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
|
2011-04-03 22:12:46 +08:00
|
|
|
#if __has_feature(cxx_trailing_return)
|
|
|
|
int has_trailing_return();
|
|
|
|
#else
|
|
|
|
int no_trailing_return();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_trailing_return
|
|
|
|
// CHECK-14: has_trailing_return
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_trailing_return
|
|
|
|
// CHECK-NO-11: no_trailing_return
|
2011-04-03 22:12:46 +08:00
|
|
|
|
|
|
|
|
2010-01-13 16:31:49 +08:00
|
|
|
#if __has_feature(cxx_attributes)
|
2011-01-26 23:36:03 +08:00
|
|
|
int has_attributes();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_attributes();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_attributes
|
|
|
|
// CHECK-14: has_attributes
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_attributes
|
|
|
|
// CHECK-NO-11: no_attributes
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
#if __has_feature(cxx_static_assert)
|
2010-01-13 16:58:42 +08:00
|
|
|
int has_static_assert();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_static_assert();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_static_assert
|
|
|
|
// CHECK-14: has_static_assert
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_static_assert
|
|
|
|
// CHECK-NO-11: no_static_assert
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_deleted_functions)
|
2011-01-26 23:36:03 +08:00
|
|
|
int has_deleted_functions();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_deleted_functions();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_deleted_functions
|
|
|
|
// CHECK-14: has_deleted_functions
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_deleted_functions
|
|
|
|
// CHECK-NO-11: no_deleted_functions
|
2010-01-13 16:31:49 +08:00
|
|
|
|
2011-11-01 09:19:34 +08:00
|
|
|
#if __has_feature(cxx_defaulted_functions)
|
|
|
|
int has_defaulted_functions();
|
|
|
|
#else
|
|
|
|
int no_defaulted_functions();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_defaulted_functions
|
|
|
|
// CHECK-14: has_defaulted_functions
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_defaulted_functions
|
|
|
|
// CHECK-NO-11: no_defaulted_functions
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_rvalue_references)
|
2011-01-26 23:36:03 +08:00
|
|
|
int has_rvalue_references();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_rvalue_references();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_rvalue_references
|
|
|
|
// CHECK-14: has_rvalue_references
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_rvalue_references
|
|
|
|
// CHECK-NO-11: no_rvalue_references
|
2010-01-13 16:31:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
#if __has_feature(cxx_variadic_templates)
|
2011-01-26 23:36:03 +08:00
|
|
|
int has_variadic_templates();
|
2010-01-13 16:31:49 +08:00
|
|
|
#else
|
|
|
|
int no_variadic_templates();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_variadic_templates
|
|
|
|
// CHECK-14: has_variadic_templates
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_variadic_templates
|
|
|
|
// CHECK-NO-11: no_variadic_templates
|
2010-09-01 07:28:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
#if __has_feature(cxx_inline_namespaces)
|
2011-01-26 23:36:03 +08:00
|
|
|
int has_inline_namespaces();
|
2010-09-01 07:28:47 +08:00
|
|
|
#else
|
|
|
|
int no_inline_namespaces();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_inline_namespaces
|
|
|
|
// CHECK-14: has_inline_namespaces
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_inline_namespaces
|
|
|
|
// CHECK-NO-11: no_inline_namespaces
|
2011-01-27 05:25:54 +08:00
|
|
|
|
2011-04-15 23:14:40 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_range_for)
|
|
|
|
int has_range_for();
|
|
|
|
#else
|
|
|
|
int no_range_for();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_range_for
|
|
|
|
// CHECK-14: has_range_for
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_range_for
|
|
|
|
// CHECK-NO-11: no_range_for
|
2011-04-15 23:14:40 +08:00
|
|
|
|
|
|
|
|
2011-01-27 05:25:54 +08:00
|
|
|
#if __has_feature(cxx_reference_qualified_functions)
|
|
|
|
int has_reference_qualified_functions();
|
|
|
|
#else
|
|
|
|
int no_reference_qualified_functions();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_reference_qualified_functions
|
|
|
|
// CHECK-14: has_reference_qualified_functions
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_reference_qualified_functions
|
|
|
|
// CHECK-NO-11: no_reference_qualified_functions
|
2011-01-27 05:25:54 +08:00
|
|
|
|
2011-02-06 04:35:30 +08:00
|
|
|
#if __has_feature(cxx_default_function_template_args)
|
|
|
|
int has_default_function_template_args();
|
|
|
|
#else
|
|
|
|
int no_default_function_template_args();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_default_function_template_args
|
|
|
|
// CHECK-14: has_default_function_template_args
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_default_function_template_args
|
|
|
|
// CHECK-NO-11: no_default_function_template_args
|
2011-02-06 04:35:30 +08:00
|
|
|
|
2011-03-16 05:17:12 +08:00
|
|
|
#if __has_feature(cxx_noexcept)
|
|
|
|
int has_noexcept();
|
|
|
|
#else
|
|
|
|
int no_noexcept();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_noexcept
|
|
|
|
// CHECK-14: has_noexcept
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_noexcept
|
|
|
|
// CHECK-NO-11: no_noexcept
|
2011-03-16 05:17:12 +08:00
|
|
|
|
2011-03-25 23:04:23 +08:00
|
|
|
#if __has_feature(cxx_override_control)
|
|
|
|
int has_override_control();
|
|
|
|
#else
|
|
|
|
int no_override_control();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_override_control
|
|
|
|
// CHECK-14: has_override_control
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_override_control
|
|
|
|
// CHECK-NO-11: no_override_control
|
2011-05-06 05:57:07 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_alias_templates)
|
|
|
|
int has_alias_templates();
|
|
|
|
#else
|
|
|
|
int no_alias_templates();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_alias_templates
|
|
|
|
// CHECK-14: has_alias_templates
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_alias_templates
|
|
|
|
// CHECK-NO-11: no_alias_templates
|
2011-09-05 02:14:28 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_implicit_moves)
|
|
|
|
int has_implicit_moves();
|
|
|
|
#else
|
|
|
|
int no_implicit_moves();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_implicit_moves
|
|
|
|
// CHECK-14: has_implicit_moves
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_implicit_moves
|
|
|
|
// CHECK-NO-11: no_implicit_moves
|
2011-10-15 07:44:46 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_alignas)
|
|
|
|
int has_alignas();
|
|
|
|
#else
|
|
|
|
int no_alignas();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_alignas
|
|
|
|
// CHECK-14: has_alignas
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_alignas
|
|
|
|
// CHECK-NO-11: no_alignas
|
2011-11-01 09:23:44 +08:00
|
|
|
|
2014-12-03 09:25:49 +08:00
|
|
|
#if __has_feature(cxx_alignof)
|
|
|
|
int has_alignof();
|
|
|
|
#else
|
|
|
|
int no_alignof();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_alignof
|
|
|
|
// CHECK-14: has_alignof
|
2014-12-03 09:25:49 +08:00
|
|
|
// CHECK-11: has_alignof
|
|
|
|
// CHECK-NO-11: no_alignof
|
|
|
|
|
2011-11-01 09:23:44 +08:00
|
|
|
#if __has_feature(cxx_raw_string_literals)
|
|
|
|
int has_raw_string_literals();
|
|
|
|
#else
|
|
|
|
int no_raw_string_literals();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_raw_string_literals
|
|
|
|
// CHECK-14: has_raw_string_literals
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_raw_string_literals
|
|
|
|
// CHECK-NO-11: no_raw_string_literals
|
2011-11-01 09:23:44 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_unicode_literals)
|
|
|
|
int has_unicode_literals();
|
|
|
|
#else
|
|
|
|
int no_unicode_literals();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_unicode_literals
|
|
|
|
// CHECK-14: has_unicode_literals
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_unicode_literals
|
|
|
|
// CHECK-NO-11: no_unicode_literals
|
2012-02-15 06:56:17 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_constexpr)
|
|
|
|
int has_constexpr();
|
|
|
|
#else
|
|
|
|
int no_constexpr();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_constexpr
|
|
|
|
// CHECK-14: has_constexpr
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_constexpr
|
|
|
|
// CHECK-NO-11: no_constexpr
|
2012-02-26 04:51:27 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_generalized_initializers)
|
|
|
|
int has_generalized_initializers();
|
|
|
|
#else
|
|
|
|
int no_generalized_initializers();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_generalized_initializers
|
|
|
|
// CHECK-14: has_generalized_initializers
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_generalized_initializers
|
|
|
|
// CHECK-NO-11: no_generalized_initializers
|
2012-03-04 07:51:05 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_unrestricted_unions)
|
|
|
|
int has_unrestricted_unions();
|
|
|
|
#else
|
|
|
|
int no_unrestricted_unions();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_unrestricted_unions
|
|
|
|
// CHECK-14: has_unrestricted_unions
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_unrestricted_unions
|
|
|
|
// CHECK-NO-11: no_unrestricted_unions
|
2012-03-09 16:41:27 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_user_literals)
|
|
|
|
int has_user_literals();
|
|
|
|
#else
|
|
|
|
int no_user_literals();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_user_literals
|
|
|
|
// CHECK-14: has_user_literals
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_user_literals
|
|
|
|
// CHECK-NO-11: no_user_literals
|
2012-04-04 08:48:39 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_local_type_template_args)
|
|
|
|
int has_local_type_template_args();
|
|
|
|
#else
|
|
|
|
int no_local_type_template_args();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_local_type_template_args
|
|
|
|
// CHECK-14: has_local_type_template_args
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_local_type_template_args
|
|
|
|
// CHECK-NO-11: no_local_type_template_args
|
2013-04-20 01:00:31 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_inheriting_constructors)
|
|
|
|
int has_inheriting_constructors();
|
|
|
|
#else
|
|
|
|
int no_inheriting_constructors();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_inheriting_constructors
|
|
|
|
// CHECK-14: has_inheriting_constructors
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_inheriting_constructors
|
|
|
|
// CHECK-NO-11: no_inheriting_constructors
|
2013-04-20 01:00:31 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_thread_local)
|
|
|
|
int has_thread_local();
|
|
|
|
#else
|
|
|
|
int no_thread_local();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_thread_local
|
|
|
|
// CHECK-14: has_thread_local
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: has_thread_local
|
|
|
|
// CHECK-NO-11: no_thread_local
|
2013-05-02 13:28:32 +08:00
|
|
|
// CHECK-NO-TLS: no_thread_local
|
2013-05-08 03:32:56 +08:00
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// === C++14 features ===
|
2013-05-08 03:32:56 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_binary_literals)
|
|
|
|
int has_binary_literals();
|
|
|
|
#else
|
|
|
|
int no_binary_literals();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_binary_literals
|
|
|
|
// CHECK-14: has_binary_literals
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: no_binary_literals
|
|
|
|
// CHECK-NO-11: no_binary_literals
|
|
|
|
|
|
|
|
#if __has_feature(cxx_aggregate_nsdmi)
|
|
|
|
int has_aggregate_nsdmi();
|
|
|
|
#else
|
|
|
|
int no_aggregate_nsdmi();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_aggregate_nsdmi
|
|
|
|
// CHECK-14: has_aggregate_nsdmi
|
2013-05-08 03:32:56 +08:00
|
|
|
// CHECK-11: no_aggregate_nsdmi
|
|
|
|
// CHECK-NO-11: no_aggregate_nsdmi
|
2013-05-12 11:09:35 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_return_type_deduction)
|
|
|
|
int has_return_type_deduction();
|
|
|
|
#else
|
|
|
|
int no_return_type_deduction();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_return_type_deduction
|
|
|
|
// CHECK-14: has_return_type_deduction
|
2013-05-12 11:09:35 +08:00
|
|
|
// CHECK-11: no_return_type_deduction
|
|
|
|
// CHECK-NO-11: no_return_type_deduction
|
2013-07-25 01:41:31 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_contextual_conversions)
|
|
|
|
int has_contextual_conversions();
|
|
|
|
#else
|
|
|
|
int no_contextual_conversions();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_contextual_conversions
|
|
|
|
// CHECK-14: has_contextual_conversions
|
2013-07-25 01:41:31 +08:00
|
|
|
// CHECK-11: no_contextual_conversions
|
|
|
|
// CHECK-NO-11: no_contextual_conversions
|
|
|
|
|
|
|
|
#if __has_feature(cxx_relaxed_constexpr)
|
|
|
|
int has_relaxed_constexpr();
|
|
|
|
#else
|
|
|
|
int no_relaxed_constexpr();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_relaxed_constexpr
|
|
|
|
// CHECK-14: has_relaxed_constexpr
|
2013-07-25 01:41:31 +08:00
|
|
|
// CHECK-11: no_relaxed_constexpr
|
|
|
|
// CHECK-NO-11: no_relaxed_constexpr
|
2013-09-28 04:19:41 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_variable_templates)
|
|
|
|
int has_variable_templates();
|
|
|
|
#else
|
|
|
|
int no_variable_templates();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_variable_templates
|
|
|
|
// CHECK-14: has_variable_templates
|
2013-09-28 04:19:41 +08:00
|
|
|
// CHECK-11: no_variable_templates
|
|
|
|
// CHECK-NO-11: no_variable_templates
|
2013-09-28 12:37:56 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_init_captures)
|
|
|
|
int has_init_captures();
|
|
|
|
#else
|
|
|
|
int no_init_captures();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_init_captures
|
|
|
|
// CHECK-14: has_init_captures
|
2013-09-28 12:37:56 +08:00
|
|
|
// CHECK-11: no_init_captures
|
|
|
|
// CHECK-NO-11: no_init_captures
|
2014-05-10 05:08:59 +08:00
|
|
|
|
|
|
|
#if __has_feature(cxx_decltype_auto)
|
|
|
|
int has_decltype_auto();
|
|
|
|
#else
|
|
|
|
int no_decltype_auto();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_decltype_auto
|
|
|
|
// CHECK-14: has_decltype_auto
|
2014-05-10 05:08:59 +08:00
|
|
|
// CHECK-11: no_decltype_auto
|
|
|
|
// CHECK-NO-11: no_decltype_auto
|
|
|
|
|
|
|
|
#if __has_feature(cxx_generic_lambdas)
|
|
|
|
int has_generic_lambdas();
|
|
|
|
#else
|
|
|
|
int no_generic_lambdas();
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 10:57:28 +08:00
|
|
|
// CHECK-1Z: has_generic_lambdas
|
|
|
|
// CHECK-14: has_generic_lambdas
|
2014-05-10 05:08:59 +08:00
|
|
|
// CHECK-11: no_generic_lambdas
|
|
|
|
// CHECK-NO-11: no_generic_lambdas
|