Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / thread / futures / futures.shared_future / default.pass.cpp
bloba808eb94c298a9480960cf399220631fb318fe7e
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // UNSUPPORTED: no-threads
11 // <future>
13 // class shared_future<R>
15 // shared_future();
17 #include <future>
18 #include <cassert>
20 #include "test_macros.h"
22 int main(int, char**)
25 std::shared_future<int> f;
26 assert(!f.valid());
29 std::shared_future<int&> f;
30 assert(!f.valid());
33 std::shared_future<void> f;
34 assert(!f.valid());
37 return 0;