cl/ssa.SetDebug

This commit is contained in:
xushiwei
2024-06-15 18:41:45 +08:00
parent 00c73b8388
commit 0a5a0ef319
2 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ import (
"runtime"
"testing"
"github.com/goplus/llgo/cl"
"github.com/goplus/llgo/cl/cltest"
"github.com/goplus/llgo/internal/build"
"github.com/goplus/llgo/ssa"
@@ -49,7 +50,9 @@ func TestFromTestlibc(t *testing.T) {
}
func TestFromTestrt(t *testing.T) {
cl.SetDebug(cl.DbgFlagAll)
cltest.FromDir(t, "", "./_testrt", true)
cl.SetDebug(0)
}
func TestFromTestdata(t *testing.T) {

View File

@@ -25,6 +25,10 @@ import (
"github.com/goplus/llgo/ssa/ssatest"
)
func init() {
ssa.SetDebug(ssa.DbgFlagAll)
}
func TestFromTestgo(t *testing.T) {
cltest.FromDir(t, "", "../cl/_testgo", false)
}