]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.cxx1z.fail.cpp
Vendor import of libc++ trunk r300422:
[FreeBSD/FreeBSD.git] / test / std / depr / depr.function.objects / depr.adaptors / depr.function.pointer.adaptors / pointer_to_binary_function.cxx1z.fail.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // <functional>
11 // pointer_to_binary_function
12 // UNSUPPORTED: c++98, c++03, c++11, c++14
13
14 #include <functional>
15 #include <type_traits>
16 #include <cassert>
17
18 #include "test_macros.h"
19
20 double binary_f(int i, short j) {return i - j + .75;}
21
22 int main()
23 {
24     typedef std::pointer_to_binary_function<int, short, double> F;
25 }