From 013012b99a5448f067cfdce8dd07cf503a6172a7 Mon Sep 17 00:00:00 2001 From: Roy Jacobson Date: Thu, 29 Sep 2022 21:16:29 +0300 Subject: [PATCH] [Clang][NFC] Add missing feature macros to lexer test --- clang/test/Lexer/cxx-features.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index 6b6729d..1963b1d 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -39,6 +39,26 @@ #error "wrong value for __cpp_size_t_suffix" #endif +#if check(if_consteval, 0, 0, 0, 0, 0, 202106) +#error "wrong value for __cpp_if_consteval" +#endif + +#if check(multidimensional_subscript, 0, 0, 0, 0, 0, 202110) +#error "wrong value for __cpp_multidimensional_subscript" +#endif + +#if check(static_call_operator, 0, 0, 0, 0, 0, 0) +#error "wrong value for __cpp_static_call_operator" +#endif + +#if check(named_character_escapes, 0, 0, 0, 0, 0, 0) +#error "wrong value for __cpp_named_character_escapes" +#endif + +#if check(explicit_this_parameter, 0, 0, 0, 0, 0, 0) +#error "wrong value for __cpp_explicit_this_parameter" +#endif + // --- C++20 features --- #if check(aggregate_paren_init, 0, 0, 0, 0, 0, 0) -- 2.7.4