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

Function hll_user_function_calls_putchar

tests/integration/vm_execution.rs:639–660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

637 assert_eq!(
638 format!("{base_outcome:?}"),
639 format!("{opt_outcome:?}"),
640 "IR optimization changed the exit outcome on the control-flow program"
641 );
642 assert_eq!(base_uart, opt_uart, "IR optimization changed UART output");
643}
644
645#[test]
646fn hll_new_i32_and_return() {
647 let (_, outcome, _) = run_hll(
648 r#"
649main: () -> i32 {
650 p: i32* = new(i32)
651 @p = 42
652 return @p
653}
654"#,
655 );
656 assert!(
657 matches!(outcome, StepOutcome::Halted(42)),
658 "expected Halted(42), got {outcome:?}"
659 );
660}
661
662// --- HLL full-pipeline VM tests ---
663

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected