some fixes in response to miri

This commit is contained in:
Mark Thom
2025-03-13 12:33:37 -07:00
committed by Mark Thom
parent 9daf016d63
commit 3dee07f648
5 changed files with 20 additions and 19 deletions

View File

@@ -1281,3 +1281,17 @@ pub(crate) fn to_local_code_ptr(heap: &Heap, addr: HeapCellValue) -> Option<usiz
}
)
}
#[cfg(test)]
mod test {
use super::*;
#[test]
fn heap_manipulation() {
let mut heap = Heap::new();
for idx in 0 .. 10 {
heap.push_cell(heap_loc_as_cell!(idx)).unwrap();
}
}
}