From 9da90e7ecffde8d17076925a6d6fbced0a26bae6 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sun, 5 May 2024 23:39:55 +0800 Subject: [PATCH] TestClosureCtx --- ssa/ssa_test.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ssa/ssa_test.go b/ssa/ssa_test.go index 589094d2..6253d21d 100644 --- a/ssa/ssa_test.go +++ b/ssa/ssa_test.go @@ -25,12 +25,15 @@ import ( "github.com/goplus/llvm" ) -/* -func TestMakeInterface(t *testing.T) { - var b Builder - b.MakeInterface(types.NewInterfaceType(nil, nil), Expr{}, true).Do(true) +func TestClosureCtx(t *testing.T) { + defer func() { + if r := recover(); r == nil { + t.Log("closureCtx: no error?") + } + }() + var f aFunction + f.closureCtx(nil) } -*/ func TestTypes(t *testing.T) { ctx := llvm.NewContext()