Cleanup tests that fail in C++1z and with Clang 3.8
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@242581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
// class function<R(ArgTypes...)>
|
||||
|
||||
// function(nullptr_t);
|
||||
// function(F);
|
||||
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
@@ -87,4 +87,8 @@ int main()
|
||||
assert(f.target<int(*)(int)>() != 0);
|
||||
f(1);
|
||||
}
|
||||
{
|
||||
std::function <void()> f(static_cast<void (*)()>(0));
|
||||
assert(!f);
|
||||
}
|
||||
}
|
||||
|
@@ -1,24 +0,0 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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);
|
||||
}
|
Reference in New Issue
Block a user