]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/libcxx/depr/enable_removed_cpp17_features.pass.cpp
Vendor import of libc++ trunk r300422:
[FreeBSD/FreeBSD.git] / test / libcxx / depr / enable_removed_cpp17_features.pass.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // Test that defining _LIBCPP_ENABLE_CXX17_REMOVED_FEATURES correctly defines
11 // _LIBCPP_ENABLE_CXX17_REMOVED_FOO for each individual component macro.
12
13 // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
14 #define _LIBCPP_ENABLE_CXX17_REMOVED_FEATURES
15 #include <__config>
16
17 #ifndef _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS
18 #error _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS must be defined
19 #endif
20
21 #ifndef _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
22 #error _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR must be defined
23 #endif
24
25 int main() {
26 }