Restrict global and function references to memory size
This commit is contained in:
@@ -3,7 +3,17 @@ package test
|
||||
import "testing"
|
||||
|
||||
import "github.com/firestuff/subcoding/gen"
|
||||
import "github.com/firestuff/subcoding/asm"
|
||||
|
||||
func TestRandProgram(t *testing.T) {
|
||||
gen.RandProgram()
|
||||
for i := 0; i < 100; i++ {
|
||||
prog := gen.RandProgram()
|
||||
|
||||
src, err := asm.Disassemble(prog)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
t.Log(src)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user