1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-threads
14 // class shared_future<R>
16 // shared_future(const shared_future& rhs);
22 #include "test_macros.h"
29 std::shared_future
<T
> f0
= p
.get_future();
30 std::shared_future
<T
> f
= f0
;
32 static_assert(noexcept(std::shared_future
<T
>{f0
}), "" );
39 std::shared_future
<T
> f0
;
40 std::shared_future
<T
> f
= f0
;
47 std::shared_future
<T
> f0
= p
.get_future();
48 std::shared_future
<T
> f
= f0
;
54 std::shared_future
<T
> f0
;
55 std::shared_future
<T
> f
= std::move(f0
);
62 std::shared_future
<T
> f0
= p
.get_future();
63 std::shared_future
<T
> f
= f0
;
69 std::shared_future
<T
> f0
;
70 std::shared_future
<T
> f
= f0
;