This commit is contained in:
2026-05-15 10:42:59 -05:00
parent a0881e3c22
commit d2463fd163
3 changed files with 48 additions and 7 deletions

View File

@@ -285,6 +285,11 @@ int main()
Code* code = code_new();
assert(code_load_bytecode(code, bytecode, bytecode_sz) == T_OK);
Instruction inst = code_next_instruction(code, 0, 0);
assert(inst.operator == TO_JMP);
assert(inst.operand == 3);
assert(inst.sz == 3);
code_destroy(code);
free(bytecode);
}