reid-llvm/reid_src/ptr.reid
2025-07-21 13:25:01 +03:00

11 lines
148 B
Plaintext

// Arithmetic, function calls and imports!
extern fn malloc(size: u64) -> *u8;
fn main() -> u16 {
let ptr = malloc(4);
return ptr[0];
}