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