diff options
Diffstat (limited to 'clang/test/Lexer/cxx-features.cpp')
-rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index a616e7f423c..18fdaa5dda3 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -22,15 +22,27 @@ // --- C++17 features --- +#if check(hex_float, 0, 0, 0, 201603) +#error "wrong value for __cpp_hex_float" +#endif + #if check(noexcept_function_type, 0, 0, 0, 0) -// FIXME +// FIXME: value shuld be 201510 for cxx1z once implemented #error "wrong value for __cpp_noexcept_function_type" #endif -#if check(fold_expressions, 0, 0, 0, 201411) +#if check(fold_expressions, 0, 0, 0, 201603) #error "wrong value for __cpp_fold_expressions" #endif +#if check(capture_star_this, 0, 0, 0, 201603) +#error "wrong value for __cpp_capture_star_this" +#endif + +// FIXME: bump __cpp_constexpr to 201603 for constexpr lambda support + +// range_based_for checked below + // static_assert checked below #if check(namespace_attributes, 0, 0, 0, 201411) @@ -47,6 +59,10 @@ #error "wrong value for __cpp_nested_namespace_definitions" #endif +#if check(aggregate_bases, 0, 0, 0, 201603) +#error "wrong value for __cpp_aggregate_bases" +#endif + #if check(nontype_template_args, 0, 0, 0, 201411) #error "wrong value for __cpp_nontype_template_args" #endif @@ -122,7 +138,7 @@ #error "wrong value for __cpp_constexpr" #endif -#if check(range_based_for, 0, 200907, 200907, 200907) +#if check(range_based_for, 0, 200907, 200907, 201603) #error "wrong value for __cpp_range_based_for" #endif |