Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / libc++ / trunk / test / utilities / function.objects / func.wrap / func.wrap.func / func.wrap.func.con / no-variadics.pass.cpp
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
20 int main()
21 {
22     std::function<void()> f(static_cast<void(*)()>(0));
23     assert(!f);
24 }