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& operator=(const shared_future& rhs);
22 #include "test_macros.h"
29 std::shared_future
<T
> f0
= p
.get_future();
30 std::shared_future
<T
> f
;
33 static_assert(noexcept(f
= f0
), "" );
40 std::shared_future
<T
> f0
;
41 std::shared_future
<T
> f
;
49 std::shared_future
<T
> f0
= p
.get_future();
50 std::shared_future
<T
> f
;
57 std::shared_future
<T
> f0
;
58 std::shared_future
<T
> f
;
66 std::shared_future
<T
> f0
= p
.get_future();
67 std::shared_future
<T
> f
;
74 std::shared_future
<T
> f0
;
75 std::shared_future
<T
> f
;