| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| // typedef void* pointer; |
| // typedef const void* const_pointer; |
| // typedef void value_type; |
| // template <class _Up> struct rebind {typedef allocator<_Up> other;}; |
| static_assert((std::is_same<std::allocator<void>::pointer, void*>::value), ""); |
| static_assert((std::is_same<std::allocator<void>::const_pointer, const void*>::value), ""); |
| static_assert((std::is_same<std::allocator<void>::value_type, void>::value), ""); |
| static_assert((std::is_same<std::allocator<void>::rebind<int>::other, |
| std::allocator<int> >::value), ""); |
| std::allocator<void> a2 = a; |