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:
Eric Fiselier
2015-07-17 22:27:43 +00:00
parent 40853eac80
commit 3f339e65df
9 changed files with 248 additions and 377 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}