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