reid-llvm/examples/ptr.reid

11 lines
131 B
Plaintext

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