diff options
author | Mital Ashok <mital@mitalashok.co.uk> | 2024-09-05 16:38:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 17:38:08 +0200 |
commit | be427dfb9ea6689947253d737708dc3645e179dc (patch) | |
tree | 3b4e2f3f467fbac5a3d7faf027648f03001db9f1 /clang/test/Lexer/cxx-features.cpp | |
parent | 0593b95ff4c459ccf71f9472c148967d40f6d865 (diff) | |
download | llvm-be427dfb9ea6689947253d737708dc3645e179dc.zip llvm-be427dfb9ea6689947253d737708dc3645e179dc.tar.gz llvm-be427dfb9ea6689947253d737708dc3645e179dc.tar.bz2 |
[Clang][Parser] Accept P2741R3 (static_assert with user-generated message) in C++11 as an extension (#102044)
Added a new `-Wpre-c++26-compat` warning for when this feature is used
in C++26 and a `-Wc++26-extensions` warning for when this is used in
C++11 through C++23.
---------
Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Diffstat (limited to 'clang/test/Lexer/cxx-features.cpp')
-rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index 4a06d29..5b88e00 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -325,7 +325,7 @@ #error "wrong value for __cpp_range_based_for" #endif -#if check(static_assert, 0, 200410, 200410, 201411, 201411, 201411, 202306) +#if check(static_assert, 0, 202306, 202306, 202306, 202306, 202306, 202306) #error "wrong value for __cpp_static_assert" #endif |