mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 05:53:39 +00:00
compiler: move ReplacePanicsWithTrap pass to transforms
This moves the transformation pass to the right location, and adds tests to see that it actually works correctly.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package transform
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestReplacePanicsWithTrap(t *testing.T) {
|
||||
t.Parallel()
|
||||
testTransform(t, "testdata/panic", ReplacePanicsWithTrap)
|
||||
}
|
||||
Reference in New Issue
Block a user