[short] skip

# ensure all runs non-default vet
! go test -vet=all ./vetall/...
stderr 'using resp before checking for errors'

# Test issue #47309
! go test -vet=bools,xyz ./vetall/...
stderr '-vet argument must be a supported analyzer'

# Test with a single analyzer
! go test -vet=httpresponse ./vetall/...
stderr 'using resp before checking for errors'

# Test with a list of analyzers
go test -vet=atomic,bools,nilfunc ./vetall/...
stdout 'm/vetall.*\[no tests to run\]'

-- go.mod --
module m

go 1.16
-- vetall/p.go --
package p

import "net/http"

func F() {
	resp, err := http.Head("example.com")
	defer resp.Body.Close()
	if err != nil {
		panic(err)
	}
	// (defer statement belongs here)
}
-- vetall/p_test.go --
package p
