From 0a5a0ef31913e3966e81dba83580ce12041782b7 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 15 Jun 2024 18:41:45 +0800 Subject: [PATCH] cl/ssa.SetDebug --- cl/compile_test.go | 3 +++ ssa/cl_test.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/cl/compile_test.go b/cl/compile_test.go index 40980b1a..8c4f9706 100644 --- a/cl/compile_test.go +++ b/cl/compile_test.go @@ -22,6 +22,7 @@ import ( "runtime" "testing" + "github.com/goplus/llgo/cl" "github.com/goplus/llgo/cl/cltest" "github.com/goplus/llgo/internal/build" "github.com/goplus/llgo/ssa" @@ -49,7 +50,9 @@ func TestFromTestlibc(t *testing.T) { } func TestFromTestrt(t *testing.T) { + cl.SetDebug(cl.DbgFlagAll) cltest.FromDir(t, "", "./_testrt", true) + cl.SetDebug(0) } func TestFromTestdata(t *testing.T) { diff --git a/ssa/cl_test.go b/ssa/cl_test.go index be5cde02..cea2ce03 100644 --- a/ssa/cl_test.go +++ b/ssa/cl_test.go @@ -25,6 +25,10 @@ import ( "github.com/goplus/llgo/ssa/ssatest" ) +func init() { + ssa.SetDebug(ssa.DbgFlagAll) +} + func TestFromTestgo(t *testing.T) { cltest.FromDir(t, "", "../cl/_testgo", false) }