reid-llvm/examples/ptr.reid

10 lines
134 B
Plaintext
Executable File

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