github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/transform/interrupt_test.go (about) 1 package transform_test 2 3 import ( 4 "testing" 5 6 "github.com/tinygo-org/tinygo/transform" 7 "tinygo.org/x/go-llvm" 8 ) 9 10 func TestInterruptLowering(t *testing.T) { 11 t.Parallel() 12 testTransform(t, "testdata/interrupt", func(mod llvm.Module) { 13 errs := transform.LowerInterrupts(mod) 14 if len(errs) != 0 { 15 t.Fail() 16 for _, err := range errs { 17 t.Error(err) 18 } 19 } 20 }) 21 }