1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
15 #include <type_traits>
21 short a2(int i) {return short(i+1);}
22 int a3() const {return 1;}
23 double a4(unsigned i) const {return i-1;}
28 typedef std::mem_fun1_ref_t<short, A, int> F;
29 static_assert((std::is_base_of<std::binary_function<A, int, short>, F>::value), "");