This commit is contained in:
parent
ec300c9a70
commit
89f375f4fc
8 changed files with 234 additions and 0 deletions
14
src/ssa/ssa_test.go
Normal file
14
src/ssa/ssa_test.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package ssa_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.urbach.dev/cli/q/src/ssa"
|
||||
)
|
||||
|
||||
func TestBlock(t *testing.T) {
|
||||
block := &ssa.Block{}
|
||||
block.Append(ssa.Instruction{Type: ssa.Int, Int: 1})
|
||||
block.Append(ssa.Instruction{Type: ssa.Int, Int: 2})
|
||||
block.Append(ssa.Instruction{Type: ssa.Add, Parameters: []ssa.Index{0, 1}})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue