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 //===----------------------------------------------------------------------===//
14 // UNSUPPORTED: c++98, c++03, c++11, c++14
17 #include <type_traits>
20 #include "test_macros.h"
25 short a2(int i) {return short(i+1);}
26 int a3() const {return 1;}
27 double a4(unsigned i) const {return i-1;}
32 typedef std::mem_fun1_t<short, A, int> F;