()
| 131 | |
| 132 | #[test] |
| 133 | fn asm_output_has_ret() { |
| 134 | let src = "f: () -> i32 { return 42 }"; |
| 135 | let asm = hll_to_asm_text(src); |
| 136 | assert!( |
| 137 | asm.contains("ret") || asm.contains("jalr"), |
| 138 | "assembly should contain a return instruction; got:\n{asm}" |
| 139 | ); |
| 140 | } |
| 141 | |
| 142 | #[test] |
| 143 | fn asm_output_text_section() { |
nothing calls this directly
no test coverage detected