[libcxx-commits] [libcxx] [libc++] Adds tests for deprecation macros. (PR #72425)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 15 10:47:35 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Mark de Wever (mordante)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/72425.diff
1 Files Affected:
- (modified) libcxx/test/libcxx/depr/enable_removed_cpp17_features.compile.pass.cpp (+12)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/72425
More information about the libcxx-commits
mailing list