24_tail_arg_permute.toy (248B)
1 fn target(a: i64, b: i64, c: i64): i64 { 2 return a + b * 2 + c * 4; 3 } 4 5 fn caller(x: i64, y: i64, z: i64): i64 { 6 return tail target(z, x, y); 7 } 8 9 fn __user_main(): i64 { 10 return caller(3, 5, 7); 11 } 12 13 fn main(): i32 { return __user_main() as i32; }