blob: 7099c45fab81fdf83037553bfe0abeef96abd534 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------------------------------------===//
// <functional>
// class function<R()>
// template<class F> function(F);
#define _LIBCPP_HAS_NO_VARIADICS
#include <functional>
#include <cassert>
int main()
{
std::function<void()> f(static_cast<void(*)()>(0));
assert(!f);
}
|