cl/ssa.SetDebug
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/goplus/llgo/cl"
|
||||||
"github.com/goplus/llgo/cl/cltest"
|
"github.com/goplus/llgo/cl/cltest"
|
||||||
"github.com/goplus/llgo/internal/build"
|
"github.com/goplus/llgo/internal/build"
|
||||||
"github.com/goplus/llgo/ssa"
|
"github.com/goplus/llgo/ssa"
|
||||||
@@ -49,7 +50,9 @@ func TestFromTestlibc(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestFromTestrt(t *testing.T) {
|
func TestFromTestrt(t *testing.T) {
|
||||||
|
cl.SetDebug(cl.DbgFlagAll)
|
||||||
cltest.FromDir(t, "", "./_testrt", true)
|
cltest.FromDir(t, "", "./_testrt", true)
|
||||||
|
cl.SetDebug(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFromTestdata(t *testing.T) {
|
func TestFromTestdata(t *testing.T) {
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ import (
|
|||||||
"github.com/goplus/llgo/ssa/ssatest"
|
"github.com/goplus/llgo/ssa/ssatest"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
ssa.SetDebug(ssa.DbgFlagAll)
|
||||||
|
}
|
||||||
|
|
||||||
func TestFromTestgo(t *testing.T) {
|
func TestFromTestgo(t *testing.T) {
|
||||||
cltest.FromDir(t, "", "../cl/_testgo", false)
|
cltest.FromDir(t, "", "../cl/_testgo", false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user