reid-llvm/reid_src/cast.reid
2025-07-22 14:19:28 +03:00

16 lines
203 B
Plaintext

// Arithmetic, function calls and imports!
import std::allocate;
fn other() -> i16 {
return 6;
}
fn main() -> u32 {
let value = other() as u32;
let v = (allocate(4) as *u32);
return v[0];
}