MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / cast_pointer_to_pointer_emits_cast

Function cast_pointer_to_pointer_emits_cast

tests/integration/ir_generation.rs:207–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 ));
206}
207
208#[test]
209fn 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 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected