mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-01 01:27:46 +00:00
172efc26a7
This moves the transformation pass to the right location, and adds tests to see that it actually works correctly.
11 lines
164 B
Go
11 lines
164 B
Go
package transform
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestReplacePanicsWithTrap(t *testing.T) {
|
|
t.Parallel()
|
|
testTransform(t, "testdata/panic", ReplacePanicsWithTrap)
|
|
}
|