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 //===----------------------------------------------------------------------===//
11 // XFAIL: c++98, c++03, c++11, c++14
13 // class function<R(ArgTypes...)>
15 // template<class F, class A> function(allocator_arg_t, const A&, F);
17 // This signature was removed in C++17
22 #include "test_macros.h"
28 std::function<void(int)> f(std::allocator_arg, std::allocator<int>(), foo);