Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(779)

Unified Diff: test/Lexer/has_feature_cxx0x.cpp

Issue 184973004: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-clang.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/Lexer/has_extension_cxx.cpp ('k') | test/Preprocessor/init.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Lexer/has_feature_cxx0x.cpp
diff --git a/test/Lexer/has_feature_cxx0x.cpp b/test/Lexer/has_feature_cxx0x.cpp
index 62a965caacb1f050b0d9b21ba61e45bc1f22104a..0b7cbd15e0f3c914d9ff06a33137a52e169c3adf 100644
--- a/test/Lexer/has_feature_cxx0x.cpp
+++ b/test/Lexer/has_feature_cxx0x.cpp
@@ -1,7 +1,6 @@
-// RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++11 %s -o - | FileCheck --check-prefix=CHECK-11 %s
+// RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++11 %s -o - | FileCheck --check-prefix=CHECK-0X %s
// RUN: %clang_cc1 -E -triple armv7-apple-darwin -std=c++11 %s -o - | FileCheck --check-prefix=CHECK-NO-TLS %s
-// RUN: %clang_cc1 -E -triple x86_64-linux-gnu %s -o - | FileCheck --check-prefix=CHECK-NO-11 %s
-// RUN: %clang_cc1 -E -triple x86_64-linux-gnu -std=c++1y %s -o - | FileCheck --check-prefix=CHECK-1Y %s
+// RUN: %clang_cc1 -E -triple x86_64-linux-gnu %s -o - | FileCheck --check-prefix=CHECK-NO-0X %s
#if __has_feature(cxx_atomic)
int has_atomic();
@@ -9,9 +8,8 @@ int has_atomic();
int no_atomic();
#endif
-// CHECK-1Y: has_atomic
-// CHECK-11: has_atomic
-// CHECK-NO-11: no_atomic
+// CHECK-0X: has_atomic
+// CHECK-NO-0X: no_atomic
#if __has_feature(cxx_lambdas)
int has_lambdas();
@@ -19,9 +17,8 @@ int has_lambdas();
int no_lambdas();
#endif
-// CHECK-1Y: has_lambdas
-// CHECK-11: has_lambdas
-// CHECK-NO-11: no_lambdas
+// CHECK-0X: has_lambdas
+// CHECK-NO-0X: no_lambdas
#if __has_feature(cxx_nullptr)
@@ -30,9 +27,8 @@ int has_nullptr();
int no_nullptr();
#endif
-// CHECK-1Y: has_nullptr
-// CHECK-11: has_nullptr
-// CHECK-NO-11: no_nullptr
+// CHECK-0X: has_nullptr
+// CHECK-NO-0X: no_nullptr
#if __has_feature(cxx_decltype)
@@ -41,9 +37,8 @@ int has_decltype();
int no_decltype();
#endif
-// CHECK-1Y: has_decltype
-// CHECK-11: has_decltype
-// CHECK-NO-11: no_decltype
+// CHECK-0X: has_decltype
+// CHECK-NO-0X: no_decltype
#if __has_feature(cxx_decltype_incomplete_return_types)
@@ -52,9 +47,8 @@ int has_decltype_incomplete_return_types();
int no_decltype_incomplete_return_types();
#endif
-// CHECK-1Y: has_decltype_incomplete_return_types
-// CHECK-11: has_decltype_incomplete_return_types
-// CHECK-NO-11: no_decltype_incomplete_return_types
+// CHECK-0X: has_decltype_incomplete_return_types
+// CHECK-NO-0X: no_decltype_incomplete_return_types
#if __has_feature(cxx_auto_type)
@@ -63,9 +57,8 @@ int has_auto_type();
int no_auto_type();
#endif
-// CHECK-1Y: has_auto_type
-// CHECK-11: has_auto_type
-// CHECK-NO-11: no_auto_type
+// CHECK-0X: has_auto_type
+// CHECK-NO-0X: no_auto_type
#if __has_feature(cxx_trailing_return)
@@ -74,9 +67,8 @@ int has_trailing_return();
int no_trailing_return();
#endif
-// CHECK-1Y: has_trailing_return
-// CHECK-11: has_trailing_return
-// CHECK-NO-11: no_trailing_return
+// CHECK-0X: has_trailing_return
+// CHECK-NO-0X: no_trailing_return
#if __has_feature(cxx_attributes)
@@ -85,9 +77,8 @@ int has_attributes();
int no_attributes();
#endif
-// CHECK-1Y: has_attributes
-// CHECK-11: has_attributes
-// CHECK-NO-11: no_attributes
+// CHECK-0X: has_attributes
+// CHECK-NO-0X: no_attributes
#if __has_feature(cxx_static_assert)
@@ -96,9 +87,8 @@ int has_static_assert();
int no_static_assert();
#endif
-// CHECK-1Y: has_static_assert
-// CHECK-11: has_static_assert
-// CHECK-NO-11: no_static_assert
+// CHECK-0X: has_static_assert
+// CHECK-NO-0X: no_static_assert
#if __has_feature(cxx_deleted_functions)
int has_deleted_functions();
@@ -106,9 +96,8 @@ int has_deleted_functions();
int no_deleted_functions();
#endif
-// CHECK-1Y: has_deleted_functions
-// CHECK-11: has_deleted_functions
-// CHECK-NO-11: no_deleted_functions
+// CHECK-0X: has_deleted_functions
+// CHECK-NO-0X: no_deleted_functions
#if __has_feature(cxx_defaulted_functions)
int has_defaulted_functions();
@@ -116,9 +105,8 @@ int has_defaulted_functions();
int no_defaulted_functions();
#endif
-// CHECK-1Y: has_defaulted_functions
-// CHECK-11: has_defaulted_functions
-// CHECK-NO-11: no_defaulted_functions
+// CHECK-0X: has_defaulted_functions
+// CHECK-NO-0X: no_defaulted_functions
#if __has_feature(cxx_rvalue_references)
int has_rvalue_references();
@@ -126,9 +114,8 @@ int has_rvalue_references();
int no_rvalue_references();
#endif
-// CHECK-1Y: has_rvalue_references
-// CHECK-11: has_rvalue_references
-// CHECK-NO-11: no_rvalue_references
+// CHECK-0X: has_rvalue_references
+// CHECK-NO-0X: no_rvalue_references
#if __has_feature(cxx_variadic_templates)
@@ -137,9 +124,8 @@ int has_variadic_templates();
int no_variadic_templates();
#endif
-// CHECK-1Y: has_variadic_templates
-// CHECK-11: has_variadic_templates
-// CHECK-NO-11: no_variadic_templates
+// CHECK-0X: has_variadic_templates
+// CHECK-NO-0X: no_variadic_templates
#if __has_feature(cxx_inline_namespaces)
@@ -148,9 +134,8 @@ int has_inline_namespaces();
int no_inline_namespaces();
#endif
-// CHECK-1Y: has_inline_namespaces
-// CHECK-11: has_inline_namespaces
-// CHECK-NO-11: no_inline_namespaces
+// CHECK-0X: has_inline_namespaces
+// CHECK-NO-0X: no_inline_namespaces
#if __has_feature(cxx_range_for)
@@ -159,9 +144,8 @@ int has_range_for();
int no_range_for();
#endif
-// CHECK-1Y: has_range_for
-// CHECK-11: has_range_for
-// CHECK-NO-11: no_range_for
+// CHECK-0X: has_range_for
+// CHECK-NO-0X: no_range_for
#if __has_feature(cxx_reference_qualified_functions)
@@ -170,9 +154,8 @@ int has_reference_qualified_functions();
int no_reference_qualified_functions();
#endif
-// CHECK-1Y: has_reference_qualified_functions
-// CHECK-11: has_reference_qualified_functions
-// CHECK-NO-11: no_reference_qualified_functions
+// CHECK-0X: has_reference_qualified_functions
+// CHECK-NO-0X: no_reference_qualified_functions
#if __has_feature(cxx_default_function_template_args)
int has_default_function_template_args();
@@ -180,9 +163,8 @@ int has_default_function_template_args();
int no_default_function_template_args();
#endif
-// CHECK-1Y: has_default_function_template_args
-// CHECK-11: has_default_function_template_args
-// CHECK-NO-11: no_default_function_template_args
+// CHECK-0X: has_default_function_template_args
+// CHECK-NO-0X: no_default_function_template_args
#if __has_feature(cxx_noexcept)
int has_noexcept();
@@ -190,9 +172,8 @@ int has_noexcept();
int no_noexcept();
#endif
-// CHECK-1Y: has_noexcept
-// CHECK-11: has_noexcept
-// CHECK-NO-11: no_noexcept
+// CHECK-0X: has_noexcept
+// CHECK-NO-0X: no_noexcept
#if __has_feature(cxx_override_control)
int has_override_control();
@@ -200,9 +181,8 @@ int has_override_control();
int no_override_control();
#endif
-// CHECK-1Y: has_override_control
-// CHECK-11: has_override_control
-// CHECK-NO-11: no_override_control
+// CHECK-0X: has_override_control
+// CHECK-NO-0X: no_override_control
#if __has_feature(cxx_alias_templates)
int has_alias_templates();
@@ -210,9 +190,8 @@ int has_alias_templates();
int no_alias_templates();
#endif
-// CHECK-1Y: has_alias_templates
-// CHECK-11: has_alias_templates
-// CHECK-NO-11: no_alias_templates
+// CHECK-0X: has_alias_templates
+// CHECK-NO-0X: no_alias_templates
#if __has_feature(cxx_implicit_moves)
int has_implicit_moves();
@@ -220,9 +199,8 @@ int has_implicit_moves();
int no_implicit_moves();
#endif
-// CHECK-1Y: has_implicit_moves
-// CHECK-11: has_implicit_moves
-// CHECK-NO-11: no_implicit_moves
+// CHECK-0X: has_implicit_moves
+// CHECK-NO-0X: no_implicit_moves
#if __has_feature(cxx_alignas)
int has_alignas();
@@ -230,9 +208,8 @@ int has_alignas();
int no_alignas();
#endif
-// CHECK-1Y: has_alignas
-// CHECK-11: has_alignas
-// CHECK-NO-11: no_alignas
+// CHECK-0X: has_alignas
+// CHECK-NO-0X: no_alignas
#if __has_feature(cxx_raw_string_literals)
int has_raw_string_literals();
@@ -240,9 +217,8 @@ int has_raw_string_literals();
int no_raw_string_literals();
#endif
-// CHECK-1Y: has_raw_string_literals
-// CHECK-11: has_raw_string_literals
-// CHECK-NO-11: no_raw_string_literals
+// CHECK-0X: has_raw_string_literals
+// CHECK-NO-0X: no_raw_string_literals
#if __has_feature(cxx_unicode_literals)
int has_unicode_literals();
@@ -250,9 +226,8 @@ int has_unicode_literals();
int no_unicode_literals();
#endif
-// CHECK-1Y: has_unicode_literals
-// CHECK-11: has_unicode_literals
-// CHECK-NO-11: no_unicode_literals
+// CHECK-0X: has_unicode_literals
+// CHECK-NO-0X: no_unicode_literals
#if __has_feature(cxx_constexpr)
int has_constexpr();
@@ -260,9 +235,8 @@ int has_constexpr();
int no_constexpr();
#endif
-// CHECK-1Y: has_constexpr
-// CHECK-11: has_constexpr
-// CHECK-NO-11: no_constexpr
+// CHECK-0X: has_constexpr
+// CHECK-NO-0X: no_constexpr
#if __has_feature(cxx_generalized_initializers)
int has_generalized_initializers();
@@ -270,9 +244,8 @@ int has_generalized_initializers();
int no_generalized_initializers();
#endif
-// CHECK-1Y: has_generalized_initializers
-// CHECK-11: has_generalized_initializers
-// CHECK-NO-11: no_generalized_initializers
+// CHECK-0X: has_generalized_initializers
+// CHECK-NO-0X: no_generalized_initializers
#if __has_feature(cxx_unrestricted_unions)
int has_unrestricted_unions();
@@ -280,9 +253,8 @@ int has_unrestricted_unions();
int no_unrestricted_unions();
#endif
-// CHECK-1Y: has_unrestricted_unions
-// CHECK-11: has_unrestricted_unions
-// CHECK-NO-11: no_unrestricted_unions
+// CHECK-0X: has_unrestricted_unions
+// CHECK-NO-0X: no_unrestricted_unions
#if __has_feature(cxx_user_literals)
int has_user_literals();
@@ -290,9 +262,8 @@ int has_user_literals();
int no_user_literals();
#endif
-// CHECK-1Y: has_user_literals
-// CHECK-11: has_user_literals
-// CHECK-NO-11: no_user_literals
+// CHECK-0X: has_user_literals
+// CHECK-NO-0X: no_user_literals
#if __has_feature(cxx_local_type_template_args)
int has_local_type_template_args();
@@ -300,9 +271,8 @@ int has_local_type_template_args();
int no_local_type_template_args();
#endif
-// CHECK-1Y: has_local_type_template_args
-// CHECK-11: has_local_type_template_args
-// CHECK-NO-11: no_local_type_template_args
+// CHECK-0X: has_local_type_template_args
+// CHECK-NO-0X: no_local_type_template_args
#if __has_feature(cxx_inheriting_constructors)
int has_inheriting_constructors();
@@ -310,9 +280,8 @@ int has_inheriting_constructors();
int no_inheriting_constructors();
#endif
-// CHECK-1Y: has_inheriting_constructors
-// CHECK-11: has_inheriting_constructors
-// CHECK-NO-11: no_inheriting_constructors
+// CHECK-0X: has_inheriting_constructors
+// CHECK-NO-0X: no_inheriting_constructors
#if __has_feature(cxx_thread_local)
int has_thread_local();
@@ -320,29 +289,6 @@ int has_thread_local();
int no_thread_local();
#endif
-// CHECK-1Y: has_thread_local
-// CHECK-11: has_thread_local
-// CHECK-NO-11: no_thread_local
+// CHECK-0X: has_thread_local
+// CHECK-NO-0X: no_thread_local
// CHECK-NO-TLS: no_thread_local
-
-// === C++1y features ===
-
-#if __has_feature(cxx_binary_literals)
-int has_binary_literals();
-#else
-int no_binary_literals();
-#endif
-
-// CHECK-1Y: has_binary_literals
-// 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
-
-// CHECK-1Y: has_aggregate_nsdmi
-// CHECK-11: no_aggregate_nsdmi
-// CHECK-NO-11: no_aggregate_nsdmi
« no previous file with comments | « test/Lexer/has_extension_cxx.cpp ('k') | test/Preprocessor/init.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698