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
15 // template <class R, class Alloc>
16 // struct uses_allocator<promise<R>, Alloc>
20 #include "test_macros.h"
21 #include "test_allocator.h"
25 static_assert((std::uses_allocator
<std::promise
<int>, test_allocator
<int> >::value
), "");
26 static_assert((std::uses_allocator
<std::promise
<int&>, test_allocator
<int> >::value
), "");
27 static_assert((std::uses_allocator
<std::promise
<void>, test_allocator
<void> >::value
), "");