diff options
author | Mark de Wever <koraq@xs4all.nl> | 2023-04-30 15:27:00 +0200 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2023-05-04 19:19:52 +0200 |
commit | ba15d186e5cef2620d562c6c9d9a6d570382cd0a (patch) | |
tree | 86597639d900a05d6b2c25236f4640f9a1697ca3 /clang/test/Lexer/cxx-features.cpp | |
parent | 6d6880554c2cd8d4d83db56c74eda24c22e6323a (diff) | |
download | llvm-ba15d186e5cef2620d562c6c9d9a6d570382cd0a.zip llvm-ba15d186e5cef2620d562c6c9d9a6d570382cd0a.tar.gz llvm-ba15d186e5cef2620d562c6c9d9a6d570382cd0a.tar.bz2 |
[clang] Use -std=c++23 instead of -std=c++2b
During the ISO C++ Committee meeting plenary session the C++23 Standard
has been voted as technical complete.
This updates the reference to c++2b to c++23 and updates the __cplusplus
macro.
Drive-by fixes c++1z -> c++17 and c++2a -> c++20 when seen.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D149553
Diffstat (limited to 'clang/test/Lexer/cxx-features.cpp')
-rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index ca7f987..5d157ea 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -3,7 +3,7 @@ // RUN: %clang_cc1 -std=c++14 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++20 -fcxx-exceptions -fsized-deallocation -verify %s -// RUN: %clang_cc1 -std=c++2b -fcxx-exceptions -fsized-deallocation -verify %s +// RUN: %clang_cc1 -std=c++23 -fcxx-exceptions -fsized-deallocation -verify %s // // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -frelaxed-template-template-args -DRELAXED_TEMPLATE_TEMPLATE_ARGS=1 -verify %s // RUN: %clang_cc1 -std=c++17 -fcxx-exceptions -fsized-deallocation -DCONCEPTS_TS=1 -verify %s @@ -28,7 +28,7 @@ #define check(macro, cxx98, cxx11, cxx14, cxx17, cxx20, cxx23) (cxx23 == 0 ? defined(__cpp_##macro) : __cpp_##macro != cxx23) #endif -// --- C++2b features --- +// --- C++23 features --- #if check(implicit_move, 0, 0, 0, 0, 0, 202011) #error "wrong value for __cpp_implicit_move" |