Sign in
go
/
lint
/
cb00e5669539f047b2f4c53a421a01b0c8e172c6
/
.
/
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--/
}
}