Cleanup non-standard tests as reported by STL@microsoft.com. NFC.
This patch addresses the following issues in the test suite: 1. Move "std::bad_array_length" test from std/ to libcxx/ test directory since the feature is not a part of the standard. 2. Rename "futures.tas" test directory to "futures.task" since that is the correct stable name. 3. Move tests for "packaged_task<T>::result_type" from std/ to libcxx/ test directory since the typedef is a libc++ extension. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@271430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -322,7 +322,7 @@ template <class R, class... ArgTypes>
|
|||||||
class packaged_task<R(ArgTypes...)>
|
class packaged_task<R(ArgTypes...)>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef R result_type;
|
typedef R result_type; // extension
|
||||||
|
|
||||||
// construction and destruction
|
// construction and destruction
|
||||||
packaged_task() noexcept;
|
packaged_task() noexcept;
|
||||||
@@ -1998,7 +1998,7 @@ template<class _Rp, class ..._ArgTypes>
|
|||||||
class _LIBCPP_TYPE_VIS_ONLY packaged_task<_Rp(_ArgTypes...)>
|
class _LIBCPP_TYPE_VIS_ONLY packaged_task<_Rp(_ArgTypes...)>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef _Rp result_type;
|
typedef _Rp result_type; // extension
|
||||||
|
|
||||||
private:
|
private:
|
||||||
__packaged_task_function<result_type(_ArgTypes...)> __f_;
|
__packaged_task_function<result_type(_ArgTypes...)> __f_;
|
||||||
@@ -2127,7 +2127,7 @@ template<class ..._ArgTypes>
|
|||||||
class _LIBCPP_TYPE_VIS_ONLY packaged_task<void(_ArgTypes...)>
|
class _LIBCPP_TYPE_VIS_ONLY packaged_task<void(_ArgTypes...)>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef void result_type;
|
typedef void result_type; // extension
|
||||||
|
|
||||||
private:
|
private:
|
||||||
__packaged_task_function<result_type(_ArgTypes...)> __f_;
|
__packaged_task_function<result_type(_ArgTypes...)> __f_;
|
||||||
|
|||||||
@@ -16,7 +16,9 @@
|
|||||||
// class packaged_task<R(ArgTypes...)>
|
// class packaged_task<R(ArgTypes...)>
|
||||||
// {
|
// {
|
||||||
// public:
|
// public:
|
||||||
// typedef R result_type;
|
// typedef R result_type; // extension
|
||||||
|
|
||||||
|
// This is a libc++ extension.
|
||||||
|
|
||||||
#include <future>
|
#include <future>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
// class packaged_task<R(ArgTypes...)>
|
// class packaged_task<R(ArgTypes...)>
|
||||||
// template <class F>
|
// template <class F>
|
||||||
// packaged_task(F&& f);
|
// packaged_task(F&& f);
|
||||||
// These constructors shall not participate in overload resolution if
|
// These constructors shall not participate in overload resolution if
|
||||||
// decay<F>::type is the same type as std::packaged_task<R(ArgTypes...)>.
|
// decay<F>::type is the same type as std::packaged_task<R(ArgTypes...)>.
|
||||||
|
|
||||||
#include <future>
|
#include <future>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
// class packaged_task<R(ArgTypes...)>
|
// class packaged_task<R(ArgTypes...)>
|
||||||
// template <class F, class Allocator>
|
// template <class F, class Allocator>
|
||||||
// packaged_task(allocator_arg_t, const Allocator& a, F&& f);
|
// packaged_task(allocator_arg_t, const Allocator& a, F&& f);
|
||||||
// These constructors shall not participate in overload resolution if
|
// These constructors shall not participate in overload resolution if
|
||||||
// decay<F>::type is the same type as std::packaged_task<R(ArgTypes...)>.
|
// decay<F>::type is the same type as std::packaged_task<R(ArgTypes...)>.
|
||||||
|
|
||||||
#include <future>
|
#include <future>
|
||||||
Reference in New Issue
Block a user