diff options
Diffstat (limited to 'clang/test/Lexer/has_feature_cxx0x.cpp')
| -rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index b2fe842bd67..e558f8804b2 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/test/Lexer/has_feature_cxx0x.cpp @@ -396,3 +396,23 @@ int no_init_captures(); // CHECK-1Y: has_init_captures // CHECK-11: no_init_captures // CHECK-NO-11: no_init_captures + +#if __has_feature(cxx_decltype_auto) +int has_decltype_auto(); +#else +int no_decltype_auto(); +#endif + +// CHECK-1Y: has_decltype_auto +// 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 + +// CHECK-1Y: has_generic_lambdas +// CHECK-11: no_generic_lambdas +// CHECK-NO-11: no_generic_lambdas |

