1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 // <functional>
10 //
11 // binder2nd
12
13 // UNSUPPORTED: clang-4.0
14 // UNSUPPORTED: c++03
15 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
16
17 #include <functional>
18
19 #include "../test_func.h"
20 #include "test_macros.h"
21
main(int,char **)22 int main(int, char**)
23 {
24 typedef std::binder2nd<test_func> B2ND; // expected-warning {{'binder2nd<test_func>' is deprecated}}
25
26 return 0;
27 }
28