aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/cxx-features.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2021-06-26 02:11:41 +0200
committerMatheus Izvekov <mizvekov@gmail.com>2021-06-26 23:05:23 +0200
commitd6144c30fb6ae7ac15c82d512f8da7572577c2d2 (patch)
treea5c36c48d2198ac3f26975c644aabd3f39a1f6b9 /clang/test/Lexer/cxx-features.cpp
parent59558129276098d62046c8cda92240d292cbfb1c (diff)
downloadllvm-d6144c30fb6ae7ac15c82d512f8da7572577c2d2.zip
llvm-d6144c30fb6ae7ac15c82d512f8da7572577c2d2.tar.gz
llvm-d6144c30fb6ae7ac15c82d512f8da7572577c2d2.tar.bz2
[clang] add C++ feature test macro for P2266 simpler implicit move
The feature was implemented in D99005, but we forgot to add the test macro. Reviewed By: Quuxplusone Differential Revision: https://reviews.llvm.org/D104984
Diffstat (limited to 'clang/test/Lexer/cxx-features.cpp')
-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 8f283dd..40c73f6 100644
--- a/clang/test/Lexer/cxx-features.cpp
+++ b/clang/test/Lexer/cxx-features.cpp
@@ -31,6 +31,10 @@
// --- C++2b features ---
+#if check(implicit_move, 0, 0, 0, 0, 0, 202011)
+#error "wrong value for __cpp_implicit_move"
+#endif
+
#if check(size_t_suffix, 0, 0, 0, 0, 0, 202011)
#error "wrong value for __cpp_size_t_suffix"
#endif