1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03, c++11, c++14
10 // TODO: Change to XFAIL once https://github.com/llvm/llvm-project/issues/40340 is fixed
11 // UNSUPPORTED: availability-pmr-missing
12 
13 // <memory_resource>
14 
15 // monotonic_buffer_resource(monotonic_buffer_resource const&) = delete;
16 // monotonic_buffer_resource& operator=(monotonic_buffer_resource const&) = delete;
17 
18 #include <memory_resource>
19 #include <type_traits>
20 
main(int,char **)21 int main(int, char**) {
22   using MBR = std::pmr::monotonic_buffer_resource;
23   static_assert(!std::is_copy_constructible_v<MBR>);
24   static_assert(!std::is_move_constructible_v<MBR>);
25   static_assert(!std::is_copy_assignable_v<MBR>);
26   static_assert(!std::is_move_assignable_v<MBR>);
27 
28   return 0;
29 }
30