//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03 // REQUIRES: c++11 || c++14 // // See https://llvm.org/bugs/show_bug.cgi?id=20002 #include #include #include "test_macros.h" using Fn = std::function; struct S : public std::function { using function::function; }; int main() { S s( [](){} ); S f1( s ); S f2(std::allocator_arg, std::allocator{}, s); }