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: libcpp-has-no-threads 10 // UNSUPPORTED: c++98, c++03 11 12 // <future> 13 14 // class packaged_task<R(ArgTypes...)> 15 16 // packaged_task(); 17 18 #include <future> 19 #include <cassert> 20 21 struct A {}; 22 23 int main(int, char**) 24 { 25 std::packaged_task<A(int, char)> p; 26 assert(!p.valid()); 27 28 return 0; 29 } 30