()
| 98 | |
| 99 | #[test] |
| 100 | fn 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 |
nothing calls this directly
no test coverage detected