[DAG] TransformFPLoadStorePair - early out if we're not loading a simple type
[llvm-project.git] / libcxx / test / std / thread / futures / futures.task / futures.task.members / ctor_copy.verify.cpp
blob5250ae739b97d7a7771f000f5d5fd197f1dca540
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // UNSUPPORTED: no-threads
10 // UNSUPPORTED: c++03
12 // <future>
14 // class packaged_task<R(ArgTypes...)>
16 // packaged_task(packaged_task&) = delete;
18 #include <future>
21 int main(int, char**)
24 std::packaged_task<double(int, char)> p0;
25 std::packaged_task<double(int, char)> p(p0); // expected-error {{call to deleted constructor of 'std::packaged_task<double (int, char)>'}}
28 return 0;