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

Function test_memory_store_load

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

Source from the content-addressed store, hash-verified

791#[test]
792fn hll_global_array_initializer() {
793 // A non-zero array global initializer lands in .data and reads back.
794 let (_, outcome, _) = run_hll(
795 r#"
796arr: i64[4] = [10, 20, 12, 0]
797main: () -> i32 {
798 s: i64 = arr[0] + arr[1] + arr[2] + arr[3]
799 return s as i32
800}
801"#,
802 );
803 assert!(
804 matches!(outcome, StepOutcome::Halted(42)),
805 "expected Halted(42), got {outcome:?}"
806 );
807}
808
809#[test]
810fn hll_function_call_and_return() {
811 let (_, outcome, _) = run_hll(

Callers

nothing calls this directly

Calls 1

assemble_and_runFunction · 0.85

Tested by

no test coverage detected