aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/errors/optimizer.go
blob: 4e0d71b93481e7d4e9ed2efd811fbd69f9250019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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: optimizer.go:9:15: interrupt ID is not a constant
// ERROR: optimizer.go:13:15: interrupt ID is not a constant