reid-llvm/examples/ptr.reid
2025-07-23 18:57:56 +03:00

12 lines
155 B
Plaintext
Executable File

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