| //===----------------------------------------------------------------------===// |
| // 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 |
| //===----------------------------------------------------------------------===// |
| // struct pointer_traits<T*> |
| // static pointer pointer_to(<details>); // constexpr in C++20 |
| static_assert((std::is_same<int *, decltype(std::pointer_traits<int*>::pointer_to(i))>::value), ""); |
| int* a = std::pointer_traits<int*>::pointer_to(i); |
| (std::pointer_traits<void*>::element_type)0; |
| static_assert(check(), ""); |