Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / thread / futures / futures.task / futures.task.members / ctor_default.pass.cpp
blob491e8d97b74171de66b1f1ba0ec12230d9efcc56
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
10 // UNSUPPORTED: c++03
12 // <future>
14 // class packaged_task<R(ArgTypes...)>
16 // packaged_task();
18 #include <future>
19 #include <cassert>
21 #include "test_macros.h"
23 struct A {};
25 int main(int, char**)
27 std::packaged_task<A(int, char)> p;
28 assert(!p.valid());
30 return 0;