[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / depr / depr.function.objects / depr.base / binary_function.pass.cpp
blob80a89c9602b862a11ec520af91851054827cd8c9
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>
10 // REQUIRES: c++03 || c++11 || c++14
11 // binary_function was removed in C++17
13 // template <class Arg1, class Arg2, class Result>
14 // struct binary_function
15 // {
16 // typedef Arg1 first_argument_type;
17 // typedef Arg2 second_argument_type;
18 // typedef Result result_type;
19 // };
21 #include <functional>
22 #include <type_traits>
24 #include "test_macros.h"
26 int main(int, char**)
28 static_assert((std::is_same<std::binary_function<int, unsigned, char>::first_argument_type, int>::value), "");
29 static_assert((std::is_same<std::binary_function<int, unsigned, char>::second_argument_type, unsigned>::value), "");
30 static_assert((std::is_same<std::binary_function<int, unsigned, char>::result_type, char>::value), "");
32 return 0;