()
| 121 | |
| 122 | #[test] |
| 123 | fn asm_output_has_prologue() { |
| 124 | let src = "f: () -> i32 { return 0 }"; |
| 125 | let asm = hll_to_asm_text(src); |
| 126 | assert!( |
| 127 | asm.contains("addi") && asm.contains("sp"), |
| 128 | "assembly should have stack-pointer adjustment in prologue; got:\n{asm}" |
| 129 | ); |
| 130 | } |
| 131 | |
| 132 | #[test] |
| 133 | fn asm_output_has_ret() { |
nothing calls this directly
no test coverage detected