Home | History | Annotate | Download | only in depr.lib.bind.2nd
      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 // bind2nd
     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 
     28 int main()
     29 {
     30     std::bind2nd(test_func(1), 5); // expected-error{{'bind2nd<test_func, int>' is deprecated}}
     31 }
     32