Handle invalid function calls
This commit is contained in:
@@ -16,11 +16,13 @@ func TestCal(t *testing.T) {
|
||||
functions:
|
||||
- - [cal, +1]
|
||||
- [add, g0, 1]
|
||||
- [cal, +2] # Function doesn't exist, immediate implicit return
|
||||
- [add, g0, 2]
|
||||
|
||||
- - [mov, g0, 5]
|
||||
`)
|
||||
|
||||
expectGlobalMemory(t, state, 0, 6)
|
||||
expectGlobalMemory(t, state, 0, 8)
|
||||
}
|
||||
|
||||
func TestRet(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user