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

Function qemu_03_structs_and_destructuring

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

Source from the content-addressed store, hash-verified

965 matches!(outcome, StepOutcome::Halted(42)),
966 "expected Halted(42), got {outcome:?}"
967 );
968}
969
970#[test]
971fn test_add_two_numbers() {
972 // 10 + 20 = 30
973 let (_, outcome) = assemble_and_run(vec![
974 ri(RealInstruction::Addi(Addi::new(11, 0, 10))), // a1 = 10
975 ri(RealInstruction::Addi(Addi::new(12, 0, 20))), // a2 = 20
976 ri(RealInstruction::Add(Add::new(10, 11, 12))), // a0 = a1 + a2 = 30

Callers

nothing calls this directly

Calls 1

run_hll_fileFunction · 0.85

Tested by

no test coverage detected