orphan/
orphan.rs

1use core::alloc::{GlobalAlloc, Layout};
2
3use smartalloc::{sm_dump, SmartAlloc};
4
5#[global_allocator]
6static GLOBAL: SmartAlloc = SmartAlloc;
7
8fn main() {
9    unsafe {
10        let alloc = SmartAlloc;
11        let layout = Layout::from_size_align(8, 8).unwrap();
12        alloc.alloc(layout);
13        sm_dump(true);
14    }
15}