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

Function test_subtract

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

Source from the content-addressed store, hash-verified

775fn hll_global_scalar_initializer() {
776 // A non-zero scalar global reads back its declared value.
777 let (_, outcome, _) = run_hll(
778 r#"
779g: i64 = 42
780main: () -> i32 {
781 return g as i32
782}
783"#,
784 );
785 assert!(
786 matches!(outcome, StepOutcome::Halted(42)),
787 "expected Halted(42), got {outcome:?}"
788 );
789}
790
791#[test]
792fn hll_global_array_initializer() {
793 // A non-zero array global initializer lands in .data and reads back.

Callers

nothing calls this directly

Calls 1

assemble_and_runFunction · 0.85

Tested by

no test coverage detected