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