xo-gc stack: fix mutation setup + xo-reader2 utest

This commit is contained in:
Roland Conybeare 2026-05-07 23:44:32 -04:00
commit 211bc93c85
3 changed files with 19 additions and 1 deletions

View file

@ -63,6 +63,9 @@ namespace xo {
auto alloc = with_facet<AAllocator>::mkobj(&arena);
obj<AAllocator> null_mm;
REQUIRE(!null_mm.data());
REQUIRE(!null_mm._has_null_vptr()); // any
DArray * arr = DArray::_empty(alloc, 16);
REQUIRE(arr != nullptr);
REQUIRE(arr->capacity() == 16);