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=(shared_future&& rhs);
21 #include "test_macros.h"
28 std::shared_future
<T
> f0
= p
.get_future();
29 std::shared_future
<T
> f
;
36 std::shared_future
<T
> f0
;
37 std::shared_future
<T
> f
;
45 std::shared_future
<T
> f0
= p
.get_future();
46 std::shared_future
<T
> f
;
53 std::shared_future
<T
> f0
;
54 std::shared_future
<T
> f
;
62 std::shared_future
<T
> f0
= p
.get_future();
63 std::shared_future
<T
> f
;
70 std::shared_future
<T
> f0
;
71 std::shared_future
<T
> f
;