reid-llvm/reid_src/ptr.reid
2025-07-21 14:43:24 +03:00

13 lines
168 B
Plaintext

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