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// bind2nd
12
13// UNSUPPORTED: c++03
14// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
15
16#include <functional>
17
18#include "../test_func.h"
19
20void f() {
21 std::bind2nd(fn: test_func(1), x: 5); // expected-warning {{'bind2nd<test_func, int>' is deprecated}}
22}
23

source code of libcxx/test/std/depr/depr.lib.binders/depr.lib.bind.2nd/bind2nd.depr_in_cxx11.verify.cpp