1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-threads
11 // packaged_task allocator support was removed in C++17 (LWG 2976)
12 // REQUIRES: c++11 || c++14
16 // class packaged_task<R(ArgTypes...)>
18 // template <class Callable, class Alloc>
19 // struct uses_allocator<packaged_task<Callable>, Alloc>
23 #include "test_macros.h"
24 #include "test_allocator.h"
26 static_assert((std::uses_allocator
<std::packaged_task
<double(int, char)>, test_allocator
<int> >::value
), "");