# Halt Instruction Test Suite
# Ensures Halt returns register 0 and ignores trailing instructions.

cases:
  - note: halt_returns_register_zero
    description: Halt ends execution and returns register 0
    literals:
      - 42
    instructions:
      - "Load { dest: 0, literal_idx: 0 }"
      - "Halt"
      - "Load { dest: 1, literal_idx: 0 }"
      - "Return { value: 1 }"
    want_result: 42
