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:
Ayke van Laethem
2019-11-16 13:07:50 +01:00
committed by Ayke
parent f49e69b02a
commit 172efc26a7
5 changed files with 91 additions and 20 deletions
+10
View File
@@ -0,0 +1,10 @@
package transform
import (
"testing"
)
func TestReplacePanicsWithTrap(t *testing.T) {
t.Parallel()
testTransform(t, "testdata/panic", ReplacePanicsWithTrap)
}