blob: c66f359a8a42f68eba44736d58930717e9e067f5 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <future>
// template<class R, class... ArgTypes>
// class packaged_task<R(ArgTypes...)>
// {
// public:
// typedef R result_type;
#include <future>
#include <type_traits>
struct A {};
int main()
{
static_assert((std::is_same<std::packaged_task<A(int, char)>::result_type, A>::value), "");
}