blob: 60d83da1556779ee6690765356f76149e56aec42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package transform
import (
"testing"
"tinygo.org/x/go-llvm"
)
func TestInterruptLowering(t *testing.T) {
t.Parallel()
for _, subtest := range []string{"avr", "cortexm"} {
t.Run(subtest, func(t *testing.T) {
testTransform(t, "testdata/interrupt-"+subtest, func(mod llvm.Module) {
errs := LowerInterrupts(mod, 0)
if len(errs) != 0 {
t.Fail()
for _, err := range errs {
t.Error(err)
}
}
})
})
}
}
|