[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / thread / futures / futures.promise / copy_ctor.verify.cpp
blob437642ba7c5801437590c7daad38d4a66d68287c
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
11 // <future>
13 // class promise<R>
15 // promise(const promise&) = delete;
17 #include <future>
19 void f() {
21 std::promise<int> p0;
22 std::promise<int> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int>'}}
25 std::promise<int &> p0;
26 std::promise<int &> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int &>'}}
29 std::promise<void> p0;
30 std::promise<void> p(p0); // expected-error {{call to deleted constructor of 'std::promise<void>'}}