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
15 // future(const future&) = delete;
22 std::future
<int> f
= f0
; // expected-error {{call to deleted constructor of 'std::future<int>'}}
25 std::future
<int &> f0
;
26 std::future
<int &> f
= f0
; // expected-error {{call to deleted constructor of 'std::future<int &>'}}
30 std::future
<void> f
= f0
; // expected-error {{call to deleted constructor of 'std::future<void>'}}