llgo/ssa.SetRuntime: prevent multiple loading of runtime
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/goplus/llgo/cl/cltest"
|
||||
"github.com/goplus/llgo/ssa"
|
||||
)
|
||||
|
||||
func TestFromTestcgo(t *testing.T) {
|
||||
@@ -31,5 +32,5 @@ func TestFromTestdata(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRuntime(t *testing.T) {
|
||||
cltest.Pkg(t, "github.com/goplus/llgo/internal/runtime", "../internal/runtime/llgo_autogen.ll")
|
||||
cltest.Pkg(t, ssa.PkgRuntime, "../internal/runtime/llgo_autogen.ll")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user