Skip to content

Commit 1bcb56e

Browse files
authored
[libc++] Adds tests for deprecation macros. (#72425)
1 parent f49ccca commit 1bcb56e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515

1616
#include "test_macros.h"
1717

18+
#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
19+
# error _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR must be defined
20+
#endif
21+
22+
#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
23+
# error _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS must be defined
24+
#endif
25+
26+
#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE
27+
# error _LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE must be defined
28+
#endif
29+
1830
#ifndef _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS
1931
#error _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS must be defined
2032
#endif

0 commit comments

Comments
 (0)