Author: Roy Jacobson Date: 2022-09-29T21:16:29+03:00 New Revision: 013012b99a5448f067cfdce8dd07cf503a6172a7
URL: https://github.com/llvm/llvm-project/commit/013012b99a5448f067cfdce8dd07cf503a6172a7 DIFF: https://github.com/llvm/llvm-project/commit/013012b99a5448f067cfdce8dd07cf503a6172a7.diff LOG: [Clang][NFC] Add missing feature macros to lexer test Added: Modified: clang/test/Lexer/cxx-features.cpp Removed: ################################################################################ diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index 6b6729df15bd1..1963b1dc43a6f 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) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits