diff options
Diffstat (limited to 'test/Lexer/has_extension_cxx.cpp')
-rw-r--r-- | test/Lexer/has_extension_cxx.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/Lexer/has_extension_cxx.cpp b/test/Lexer/has_extension_cxx.cpp index 68b542f..d3483df 100644 --- a/test/Lexer/has_extension_cxx.cpp +++ b/test/Lexer/has_extension_cxx.cpp @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -E %s -o - | FileCheck %s +// RUN: %clang_cc1 -std=c++98 -E %s -o - | FileCheck %s +// RUN: %clang_cc1 -std=c++11 -E %s -o - | FileCheck %s --check-prefix=CHECK11 // CHECK: c_static_assert #if __has_extension(c_static_assert) @@ -40,16 +41,23 @@ int has_reference_qualified_functions(); int has_rvalue_references(); #endif +// CHECK: has_local_type_template_args #if __has_extension(cxx_local_type_template_args) int has_local_type_template_args(); -#else -int no_local_type_template_args(); #endif -// CHECK: has_local_type_template_args - +// CHECK: has_binary_literals #if __has_extension(cxx_binary_literals) int has_binary_literals(); #endif -// CHECK: has_binary_literals +// CHECK: has_variable_templates +#if __has_extension(cxx_variable_templates) +int has_variable_templates(); +#endif + +// CHECK-NOT: has_init_captures +// CHECK11: has_init_captures +#if __has_extension(cxx_init_captures) +int has_init_captures(); +#endif |