[libcxx-commits] [libcxx] [libc++] Adds tests for deprecation macros. (PR #72425)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 15 10:47:08 PST 2023
https://github.com/mordante created https://github.com/llvm/llvm-project/pull/72425
None
>From a3c99168853036016b213d4c84f8224ba6df412c Mon Sep 17 00:00:00 2001
From: Mark de Wever <koraq at xs4all.nl>
Date: Tue, 14 Nov 2023 19:43:30 +0100
Subject: [PATCH] [libc++] Adds tests for deprecation macros.
---
.../enable_removed_cpp17_features.compile.pass.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/libcxx/test/libcxx/depr/enable_removed_cpp17_features.compile.pass.cpp b/libcxx/test/libcxx/depr/enable_removed_cpp17_features.compile.pass.cpp
index a734d8aa78bd957..2ee6010b3fc2180 100644
--- a/libcxx/test/libcxx/depr/enable_removed_cpp17_features.compile.pass.cpp
+++ b/libcxx/test/libcxx/depr/enable_removed_cpp17_features.compile.pass.cpp
@@ -15,6 +15,18 @@
#include "test_macros.h"
+#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
+# error _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR must be defined
+#endif
+
+#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
+# error _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS must be defined
+#endif
+
+#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE
+# error _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE must be defined
+#endif
+
#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS
#error _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS must be defined
#endif
More information about the libcxx-commits
mailing list