This commit is contained in:
Andre Wagner
2026-05-16 15:41:20 -05:00
parent 5c885654af
commit f447b6cb98
4 changed files with 30 additions and 5 deletions

View File

@@ -57,4 +57,22 @@ return {
expected_stack_size = 1,
expected_stack_top = 3,
},
{
name = "VM: functions",
code = [[
.func 0
pushf 1
pushi 2
pushi 3
call 2
ret
.func 1
dupv 0
dupv 1
sub
ret
]],
expected_stack_size = 1,
expected_stack_top = -1,
},
}