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// template <class T> class polymorphic_allocator
16
17// polymorphic_allocator operator=(polymorphic_allocator const &) = delete
18
19#include <memory_resource>
20#include <type_traits>
21#include <cassert>
22
23int main(int, char**) {
24 typedef std::pmr::polymorphic_allocator<void> T;
25 static_assert(!std::is_copy_assignable<T>::value, "");
26 static_assert(!std::is_move_assignable<T>::value, "");
27
28 return 0;
29}
30

source code of libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.ctor/assign.pass.cpp