1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: c++03 10 // XFAIL: c++11, c++14 11 12 // <functional> 13 14 #include <functional> 15 #include <type_traits> 16 17 #include "test_macros.h" 18 19 struct S : public std::function<void()> { using function::function; }; 20 main(int,char **)21int main(int, char**) { 22 S f1( [](){} ); 23 S f2(std::allocator_arg, std::allocator<int>{}, f1); 24 25 return 0; 26 } 27