()
| 205 | )); |
| 206 | } |
| 207 | |
| 208 | #[test] |
| 209 | fn chained_casts_emit_multiple_cast_instructions() { |
| 210 | assert!( |
| 211 | count_instructions( |
| 212 | r#"main: () -> i64 { a: i32 = 10 return (a as i64) + (20 as i64) }"#, |
| 213 | |i| matches!(i, IrInstruction::Cast { .. }), |
| 214 | ) >= 2 |
| 215 | ); |
nothing calls this directly
no outgoing calls
no test coverage detected