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

Function asm_output_has_ret

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

Source from the content-addressed store, hash-verified

131
132#[test]
133fn 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]
143fn asm_output_text_section() {

Callers

nothing calls this directly

Calls 1

hll_to_asm_textFunction · 0.85

Tested by

no test coverage detected