blob: dd1724ddbda5c4302bcc86efa6ef81d7ba8ae55b [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// template<class R, class... ArgTypes>
15// class packaged_task<R(ArgTypes...)>
16// {
17// public:
18// typedef R result_type;
19
20#include <future>
21#include <type_traits>
22
23struct A {};
24
25int main()
26{
27 static_assert((std::is_same<std::packaged_task<A(int, char)>::result_type, A>::value), "");
28}