TestRuntime
This commit is contained in:
@@ -20,7 +20,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/goplus/llgo/cl/cltest"
|
||||
"github.com/goplus/llgo/ssa"
|
||||
)
|
||||
|
||||
func TestFromTestcgo(t *testing.T) {
|
||||
@@ -32,5 +31,6 @@ func TestFromTestdata(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRuntime(t *testing.T) {
|
||||
cltest.Pkg(t, ssa.PkgRuntime, "../internal/runtime/llgo_autogen.ll")
|
||||
cltest.Pkg(t, "github.com/goplus/llgo/internal/runtime", "../internal/runtime/llgo_autogen.ll")
|
||||
cltest.Pkg(t, "github.com/goplus/llgo/internal/abi", "../internal/abi/llgo_autogen.ll")
|
||||
}
|
||||
|
||||
@@ -104,6 +104,9 @@ source_filename = "foo/bar"
|
||||
|
||||
@a = external global {}
|
||||
`)
|
||||
if prog.NeedRuntime() {
|
||||
t.Fatal("NeedRuntime?")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNamedStruct(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user