blob: 76904962a778d404079ad54d500d9bcb70682a27 [file] [log] [blame]
Howard Hinnant54da3382010-08-30 18:46:21 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnantb64f8b02010-11-16 22:09:02 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Howard Hinnant54da3382010-08-30 18:46:21 +00007//
8//===----------------------------------------------------------------------===//
Jonathan Roelofs8d86b2e2014-09-05 19:45:05 +00009//
10// UNSUPPORTED: libcpp-has-no-threads
Howard Hinnant54da3382010-08-30 18:46:21 +000011
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;
Howard Hinnant7de47902010-11-30 20:23:32 +000026 assert(!p.valid());
Howard Hinnant54da3382010-08-30 18:46:21 +000027}