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 // <functional>
11 
12 // class function<R()>
13 
14 // template<class F> function(F);
15 
16 #define _LIBCPP_HAS_NO_VARIADICS
17 #include <functional>
18 #include <cassert>
19 
main()20 int main()
21 {
22     std::function<void()> f(static_cast<void(*)()>(0));
23     assert(!f);
24 }
25