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. llvm-svn: 271430
28 lines
722 B
C++
28 lines
722 B
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// UNSUPPORTED: libcpp-has-no-threads
|
|
// UNSUPPORTED: c++98, c++03
|
|
|
|
// <future>
|
|
|
|
// class packaged_task<R(ArgTypes...)>
|
|
|
|
// packaged_task& operator=(packaged_task&) = delete;
|
|
|
|
#include <future>
|
|
|
|
int main()
|
|
{
|
|
{
|
|
std::packaged_task<double(int, char)> p0, p;
|
|
p = p0; // expected-error {{overload resolution selected deleted operator '='}}
|
|
}
|
|
}
|