Home | History | Annotate | Download | only in func.wrap.func
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // UNSUPPORTED: c++98, c++03
     11 // XFAIL: c++11, c++14
     12 
     13 // <functional>
     14 
     15 #include <functional>
     16 #include <type_traits>
     17 
     18 #include "test_macros.h"
     19 
     20 struct S : public std::function<void()> { using function::function; };
     21 
     22 int main() {
     23    S f1( [](){} );
     24    S f2(std::allocator_arg, std::allocator<int>{}, f1);
     25 }
     26