blob: 986f71e29a46d3e467888ed7be57dba19070104e [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// template <class Callable, class Alloc>
17// struct uses_allocator<packaged_task<Callable>, Alloc>
18// : true_type { };
19
20#include <future>
Dan Albert1d4a1ed2016-05-25 22:36:09 -070021#include "../../test_allocator.h"
Howard Hinnant54da3382010-08-30 18:46:21 +000022
23int main()
24{
25 static_assert((std::uses_allocator<std::packaged_task<double(int, char)>, test_allocator<int> >::value), "");
26}