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

Function two_functions_both_appear_in_ir

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

Source from the content-addressed store, hash-verified

488fn address_of_emits_alloc_and_load() {
489 let source = r#"main: () -> i32 {
490 x: i32 = 42
491 ptr: i32* = &x
492 val: i32 = @ptr
493 return val
494}"#;
495 assert!(has_instruction(source, |i| matches!(
496 i,
497 IrInstruction::Alloc { .. }
498 )));
499 assert!(has_instruction(source, |i| matches!(
500 i,
501 IrInstruction::Load { .. }
502 )));
503}
504
505#[test]

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
compile_okFunction · 0.70

Tested by

no test coverage detected