27_tail_mixed_int_fp.toy (297B)
1 fn target(a: i64, b: f64, c: i64, d: f64): i64 { 2 return a + c + (b as i64) * 2 + (d as i64) * 3; 3 } 4 5 fn caller(x: i64, y: f64, z: i64, w: f64): i64 { 6 return tail target(z, w, x, y); 7 } 8 9 fn __user_main(): i64 { 10 return caller(3, 5.0, 7, 11.0); 11 } 12 13 fn main(): i32 { return __user_main() as i32; }