diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-28 20:42:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-28 20:42:56 +0000 |
commit | 3a2044d1a8a79f495c9e7def70947d5e8b30db7a (patch) | |
tree | 06e4edd30ec629f44afda6ca87e68279184b78eb /test/Lexer | |
parent | e8cee8f0e8124e979744401fd248c5be331ee424 (diff) |
Add a couple more tentative names for upcoming SD-6 feature checks. These might
not reflect the final chosen names, but supporting them now seems to have
little downside.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/cxx-features.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Lexer/cxx-features.cpp b/test/Lexer/cxx-features.cpp index 18fdaa5dda..f7a4ce1298 100644 --- a/test/Lexer/cxx-features.cpp +++ b/test/Lexer/cxx-features.cpp @@ -26,6 +26,15 @@ #error "wrong value for __cpp_hex_float" #endif +#if check(inline_variables, 0, 0, 0, 201606) // FIXME: provisional name +#error "wrong value for __cpp_inline_variables" +#endif + +#if check(aligned_new, 0, 0, 0, 0) // FIXME: provisional name +// FIXME: value shuld be 201606 for cxx1z once implemented +#error "wrong value for __cpp_aligned_new" +#endif + #if check(noexcept_function_type, 0, 0, 0, 0) // FIXME: value shuld be 201510 for cxx1z once implemented #error "wrong value for __cpp_noexcept_function_type" @@ -41,10 +50,19 @@ // FIXME: bump __cpp_constexpr to 201603 for constexpr lambda support +#if check(if_constexpr, 0, 0, 0, 201606) // FIXME: provisional name +#error "wrong value for __cpp_if_constexpr" +#endif + // range_based_for checked below // static_assert checked below +#if check(template_auto, 0, 0, 0, 0) // FIXME: provisional name +// FIXME: value shuld be 201606 for cxx1z once implemented +#error "wrong value for __cpp_template_auto" +#endif + #if check(namespace_attributes, 0, 0, 0, 201411) // FIXME: allowed without warning in C++14 and C++11 #error "wrong value for __cpp_namespace_attributes" @@ -63,6 +81,9 @@ #error "wrong value for __cpp_aggregate_bases" #endif +// FIXME: structured_bindings / decomposition_decl name not yet settled, and +// Clang implementation is incomplete. + #if check(nontype_template_args, 0, 0, 0, 201411) #error "wrong value for __cpp_nontype_template_args" #endif |