diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-28 20:26:06 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-28 20:26:06 +0000 |
commit | 38d91d49ce743af802f8dd106ab508d04903c06b (patch) | |
tree | 3a70d40a59c0899fdaeb5b6690aeb9053cae154a /clang/test/Lexer | |
parent | dcb1bcae0b641701e07831b76a3130e6df765b3b (diff) | |
download | bcm5719-llvm-38d91d49ce743af802f8dd106ab508d04903c06b.tar.gz bcm5719-llvm-38d91d49ce743af802f8dd106ab508d04903c06b.zip |
P0095R3: Implement the latest published revision of SD-6 (C++ feature test macros).
llvm-svn: 282627
Diffstat (limited to 'clang/test/Lexer')
-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 |