diff options
Diffstat (limited to 'test.cc')
-rw-r--r-- | test.cc | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -8,6 +8,24 @@ int main() { [] consteval { + static_assert(::zp::isptr<int> == false); + static_assert(::zp::isptr<int *> == true); + static_assert(::zp::isptr<int const *> == true); + static_assert(::zp::isptr<int volatile *> == true); + static_assert(::zp::isptr<int const volatile *> == true); + static_assert(::zp::isptr<int * const> == true); + static_assert(::zp::isptr<int const * const> == true); + static_assert(::zp::isptr<int volatile * const> == true); + static_assert(::zp::isptr<int const volatile * const> == true); + static_assert(::zp::isptr<int * volatile> == true); + static_assert(::zp::isptr<int const * volatile> == true); + static_assert(::zp::isptr<int volatile * volatile> == true); + static_assert(::zp::isptr<int const volatile * volatile> == true); + static_assert(::zp::isptr<int * const volatile> == true); + static_assert(::zp::isptr<int const * const volatile> == true); + static_assert(::zp::isptr<int volatile * const volatile> == true); + static_assert(::zp::isptr<int const volatile * const volatile> == true); + static_assert(::zp::typequ<::zp::sgn<int>, int> == true); static_assert(::zp::typequ<::zp::sgn<int unsigned>,int> == true); |