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(future<R>&& rhs);
21 #include "test_macros.h"
28 std::future
<T
> f0
= p
.get_future();
29 std::shared_future
<T
> f
= std::move(f0
);
36 std::shared_future
<T
> f
= std::move(f0
);
43 std::future
<T
> f0
= p
.get_future();
44 std::shared_future
<T
> f
= std::move(f0
);
51 std::shared_future
<T
> f
= std::move(f0
);
58 std::future
<T
> f0
= p
.get_future();
59 std::shared_future
<T
> f
= std::move(f0
);
66 std::shared_future
<T
> f
= std::move(f0
);