17 lines
221 B
Plaintext
17 lines
221 B
Plaintext
// Arithmetic, function calls and imports!
|
|
|
|
import std::allocate;
|
|
import std::print;
|
|
|
|
fn other() -> i16 {
|
|
return 6;
|
|
}
|
|
|
|
fn main() -> u32 {
|
|
|
|
let mut v = (allocate(4) as *u32);
|
|
v[0] = other() as u32;
|
|
|
|
return v[0];
|
|
}
|