summaryrefslogtreecommitdiff
path: root/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test.cc')
-rw-r--r--test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test.cc b/test.cc
index 00990b6..83580f0 100644
--- a/test.cc
+++ b/test.cc
@@ -7,7 +7,7 @@
#include <zp/str>
int main() {
- [] consteval {
+ static_assert([] {
static_assert(::zp::isptr<int> == false);
static_assert(::zp::isptr<int *> == true);
static_assert(::zp::isptr<int const *> == true);
@@ -130,5 +130,7 @@ int main() {
static_assert(::zp::maxval<long unsigned> == ::std::numeric_limits<long unsigned>::max());
static_assert(::zp::maxval<long long unsigned> == ::std::numeric_limits<long long unsigned>::max());
static_assert(::zp::maxval<wchar_t> == ::std::numeric_limits<wchar_t>::max());
- }();
+
+ return true;
+ }());
}