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

Function ir_output_multiple_functions

tests/integration/cli_pipeline.rs:100–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99#[test]
100fn ir_output_multiple_functions() {
101 let src = "
102 square: (n: i32) -> i32 { return n * n }
103 cube: (n: i32) -> i32 { return n * n * n }
104 ";
105 let ir = hll_to_ir_text(src);
106 assert!(ir.contains("square"), "IR should contain 'square'");
107 assert!(ir.contains("cube"), "IR should contain 'cube'");
108}
109
110// --- hll-to-asm tests ---
111

Callers

nothing calls this directly

Calls 1

hll_to_ir_textFunction · 0.85

Tested by

no test coverage detected