aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/cxx-features.cpp
diff options
context:
space:
mode:
authorMital Ashok <mital@mitalashok.co.uk>2024-09-05 16:38:08 +0100
committerGitHub <noreply@github.com>2024-09-05 17:38:08 +0200
commitbe427dfb9ea6689947253d737708dc3645e179dc (patch)
tree3b4e2f3f467fbac5a3d7faf027648f03001db9f1 /clang/test/Lexer/cxx-features.cpp
parent0593b95ff4c459ccf71f9472c148967d40f6d865 (diff)
downloadllvm-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.cpp2
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