Sign in
go
/
lint
/
46530068cce6db92aaafde350b5059841861d5be
/
.
/
testdata
/
inc.go
blob: 3868beea11688b59b42151ebd59cc592dafa039f [
file
] [
log
] [
blame
]
// Test for use of x++ and x--.
// Package pkg ...
package pkg
func addOne(x int) int {
x += 1
// MATCH /x\+\+/
return x
}
func subOneInLoop(y int) {
for ; y > 0; y -= 1 {
// MATCH /y--/
}
}