TestGoLibMath

This commit is contained in:
xushiwei
2024-06-15 16:08:10 +08:00
parent b668175c62
commit 764e0f0e7f
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@@ -20,6 +20,7 @@ import (
"testing"
"github.com/goplus/llgo/cl/cltest"
"github.com/goplus/llgo/internal/build"
"github.com/goplus/llgo/ssa"
)
@@ -64,6 +65,11 @@ func TestPython(t *testing.T) {
cltest.Pkg(t, ssa.PkgPython, "../py/llgo_autogen.ll")
}
func TestGoLibMath(t *testing.T) {
conf := build.NewDefaultConf(build.ModeInstall)
build.Do([]string{"math"}, conf)
}
func TestVar(t *testing.T) {
testCompile(t, `package foo