Debian Codegraph @

src/cmd/go/testdata/script/mod_gofmt_invalid.txt

raw
1 # Test for a crash in go fmt on invalid input when using modules.
2 # Issue 26792.
3
4 env GO111MODULE=on
5 ! go fmt x.go
6 ! stderr panic
7
8 -- go.mod --
9 module x
10
11 -- x.go --
12 // Missing package declaration.
13 var V int