Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / depr / depr.lib.binders / depr.lib.bind.1st / bind1st.depr_in_cxx11.verify.cpp
blob00ae30908da082c0ca20caa533bbd9ab440e35ad
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 //===----------------------------------------------------------------------===//
9 // <functional>
11 // bind1st
13 // UNSUPPORTED: c++03
14 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS
16 #include <functional>
18 #include "../test_func.h"
20 void f() {
21 std::bind1st(test_func(1), 5); // expected-warning {{'bind1st<test_func, int>' is deprecated}}