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 // <functional> 11 // 12 // binder2nd 13 14 // UNSUPPORTED: clang-4.0 15 // UNSUPPORTED: c++98, c++03 16 // REQUIRES: verify-support 17 18 // MODULES_DEFINES: _LIBCPP_ENABLE_DEPRECATION_WARNINGS 19 // MODULES_DEFINES: _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS 20 #define _LIBCPP_ENABLE_DEPRECATION_WARNINGS 21 #define _LIBCPP_ENABLE_CXX17_REMOVED_BINDERS 22 23 #include <functional> 24 25 #include "../test_func.h" 26 #include "test_macros.h" 27 main()28int main() 29 { 30 typedef std::binder2nd<test_func> B2ND; // expected-error{{'binder2nd<test_func>' is deprecated}} 31 } 32