edlang/lib/edlang_driver/tests/programs/refs.ed
2024-03-13 12:24:40 +01:00

13 lines
128 B
Rust

pub fn main() -> i64 {
let mut a: i64 = 0;
hello(&mut a);
return a;
}
pub fn hello(a: &mut i32) {
*a = 2;
}