aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer
diff options
context:
space:
mode:
authorSirraide <aeternalmail@gmail.com>2024-04-14 12:30:01 +0200
committerGitHub <noreply@github.com>2024-04-14 12:30:01 +0200
commitef164cee90477e294ff692209b4cf97a0e1958ed (patch)
tree3c287ecad68abfcc42764475fb6906c1da856afc /clang/test/Lexer
parented06b847d4e77d0b81fa6b095366bb070db57846 (diff)
downloadllvm-ef164cee90477e294ff692209b4cf97a0e1958ed.zip
llvm-ef164cee90477e294ff692209b4cf97a0e1958ed.tar.gz
llvm-ef164cee90477e294ff692209b4cf97a0e1958ed.tar.bz2
[Clang] [C++26] Implement P2573R2: `= delete("should have a reason");` (#86526)
This implements support for the `= delete("message")` syntax that was only just added to C++26 ([P2573R2](https://isocpp.org/files/papers/P2573R2.html#proposal-scope)).
Diffstat (limited to 'clang/test/Lexer')
-rw-r--r--clang/test/Lexer/cxx-features.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp
index 1de3249..baaa9d4 100644
--- a/clang/test/Lexer/cxx-features.cpp
+++ b/clang/test/Lexer/cxx-features.cpp
@@ -34,6 +34,10 @@
// --- C++26 features ---
+#if check(deleted_function, 202403, 202403, 202403, 202403, 202403, 202403, 202403)
+#error "wrong value for __cpp_deleted_function"
+#endif
+
#if check(placeholder_variables, 202306, 202306, 202306, 202306, 202306, 202306, 202306)
#error "wrong value for __cpp_placeholder_variables"
#endif