[libcxx-commits] [libcxx] 1bcb56e - [libc++] Adds tests for deprecation macros. (#72425)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 16 01:21:26 PST 2023


Author: Mark de Wever
Date: 2023-11-16T10:21:22+01:00
New Revision: 1bcb56ecb5bdca7498e16cf51b1040a8611e3602

URL: https://github.com/llvm/llvm-project/commit/1bcb56ecb5bdca7498e16cf51b1040a8611e3602
DIFF: https://github.com/llvm/llvm-project/commit/1bcb56ecb5bdca7498e16cf51b1040a8611e3602.diff

LOG: [libc++] Adds tests for deprecation macros. (#72425)

Added: 
    

Modified: 
    libcxx/test/libcxx/depr/enable_removed_cpp17_features.compile.pass.cpp

Removed: 
    


################################################################################
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