mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
386 B
19 lines
386 B
package main
|
|
|
|
import "runtime/interrupt"
|
|
|
|
var num = 5
|
|
|
|
func main() {
|
|
// Error coming from LowerInterrupts.
|
|
interrupt.New(num, func(interrupt.Interrupt) {
|
|
})
|
|
|
|
// 2nd error
|
|
interrupt.New(num, func(interrupt.Interrupt) {
|
|
})
|
|
}
|
|
|
|
// ERROR: # command-line-arguments
|
|
// ERROR: optimizer.go:9:15: interrupt ID is not a constant
|
|
// ERROR: optimizer.go:13:15: interrupt ID is not a constant
|
|
|