blob: 21edc7dc2f4744230f464f66ae2adcb8a4333035 [file] [log] [blame]
# Test for a crash in go fmt on invalid input when using modules.
# Issue 26792.
env GO111MODULE=on
! go fmt x.go
! stderr panic
-- go.mod --
module x
-- x.go --
// Missing package declaration.
var V int