reid-llvm/reid/examples/reid/mutable.reid

17 lines
231 B
Plaintext

// Arithmetic, function calls and imports!
fn indirection() -> bool {
return true;
}
fn main() -> u16 {
let mut test = 5;
let heehoo = 10;
if indirection() {
test = 11;
}
return test + heehoo;
}