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 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03
11 // REQUIRES-ANY: c++11, c++14
15 // See https://llvm.org/bugs/show_bug.cgi?id=20002
18 #include <type_traits>
20 #include "test_macros.h"
22 using Fn = std::function<void()>;
23 struct S : public std::function<void()> { using function::function; };
28 S f2(std::allocator_arg, std::allocator<int>{}, s);