blob: 21edc7dc2f4744230f464f66ae2adcb8a4333035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# 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
|