34 lines
462 B
Text
34 lines
462 B
Text
fn f() i32 {
|
|
var a = 3;
|
|
a = 2;
|
|
return a + 23;
|
|
}
|
|
|
|
fn f2() i32 {
|
|
return f() + 2;
|
|
}
|
|
|
|
fn func_refer_param(b: i32) i32 {
|
|
return b * 231 + b;
|
|
}
|
|
|
|
fn multwo(num: i32, double_flag: bool) i32 {
|
|
if (!double_flag) {
|
|
var value = 32;
|
|
return value;
|
|
}
|
|
|
|
if (double_flag) {
|
|
return num * 2;
|
|
} else {
|
|
return num;
|
|
}
|
|
}
|
|
|
|
fn add(a: i32, b: i32) i32 {
|
|
return a + b + (2 * b);
|
|
}
|
|
|
|
fn main() i32 {
|
|
return 1;
|
|
}
|