reid-llvm/reid_src/ptr.reid

11 lines
147 B
Plaintext

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