diff --git a/ssa/cl_test.go b/ssa/cl_test.go index ab36b123..8690bc6c 100644 --- a/ssa/cl_test.go +++ b/ssa/cl_test.go @@ -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") } diff --git a/ssa/ssa_test.go b/ssa/ssa_test.go index c6977054..f15992bd 100644 --- a/ssa/ssa_test.go +++ b/ssa/ssa_test.go @@ -104,6 +104,9 @@ source_filename = "foo/bar" @a = external global {} `) + if prog.NeedRuntime() { + t.Fatal("NeedRuntime?") + } } func TestNamedStruct(t *testing.T) {