1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is dual licensed under the MIT and the University of Illinois Open 6// Source Licenses. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// UNSUPPORTED: libcpp-has-no-threads 11 12// <future> 13 14// class packaged_task<R(ArgTypes...)> 15 16// packaged_task(); 17 18#include <future> 19#include <cassert> 20 21struct A {}; 22 23int main() 24{ 25 std::packaged_task<A(int, char)> p; 26 assert(!p.valid()); 27} 28