15a83710eSEric Fiselier //===----------------------------------------------------------------------===//
25a83710eSEric Fiselier //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
65a83710eSEric Fiselier //
75a83710eSEric Fiselier //===----------------------------------------------------------------------===//
85a83710eSEric Fiselier 
95a83710eSEric Fiselier // <functional>
10bc933768SStephan T. Lavavej // REQUIRES: c++98 || c++03 || c++11 || c++14
11bc933768SStephan T. Lavavej // binary_function was removed in C++17
125a83710eSEric Fiselier 
135a83710eSEric Fiselier // binary_function
145a83710eSEric Fiselier 
155a83710eSEric Fiselier #include <functional>
165a83710eSEric Fiselier #include <type_traits>
175a83710eSEric Fiselier 
18*7fc6a556SMarshall Clow #include "test_macros.h"
19*7fc6a556SMarshall Clow 
202df59c50SJF Bastien int main(int, char**)
215a83710eSEric Fiselier {
225a83710eSEric Fiselier     typedef std::binary_function<int, short, bool> bf;
235a83710eSEric Fiselier     static_assert((std::is_same<bf::first_argument_type, int>::value), "");
245a83710eSEric Fiselier     static_assert((std::is_same<bf::second_argument_type, short>::value), "");
255a83710eSEric Fiselier     static_assert((std::is_same<bf::result_type, bool>::value), "");
262df59c50SJF Bastien 
272df59c50SJF Bastien   return 0;
285a83710eSEric Fiselier }
29