()
| 141 | |
| 142 | #[test] |
| 143 | fn asm_output_text_section() { |
| 144 | let src = "f: () -> i32 { return 0 }"; |
| 145 | let asm = hll_to_asm_text(src); |
| 146 | assert!( |
| 147 | asm.contains(".section .text") || asm.contains(".text"), |
| 148 | "assembly should have a .text section; got:\n{asm}" |
| 149 | ); |
| 150 | } |
| 151 | |
| 152 | // --- run tests --- |
| 153 |
nothing calls this directly
no test coverage detected