From 98065e80d0fe127253e7120285773f724d2d7290 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Mon, 29 Apr 2024 01:42:00 +0800 Subject: [PATCH] TestRuntime --- ssa/cl_test.go | 4 ++-- ssa/ssa_test.go | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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) {