diff options
Diffstat (limited to 'libgo/go/cmd/go/testdata/script/list_parse_err.txt')
-rw-r--r-- | libgo/go/cmd/go/testdata/script/list_parse_err.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/testdata/script/list_parse_err.txt b/libgo/go/cmd/go/testdata/script/list_parse_err.txt new file mode 100644 index 00000000000..5aacaa88fae --- /dev/null +++ b/libgo/go/cmd/go/testdata/script/list_parse_err.txt @@ -0,0 +1,17 @@ +# 'go list' should report imports, even if some files have parse errors +# before the import block. +go list -e -f '{{range .Imports}}{{.}} {{end}}' +stdout '^fmt ' + +-- go.mod -- +module m + +go 1.13 + +-- a.go -- +package a + +import "fmt" + +-- b.go -- +// no package statement |