From 20d333b6f48545cd9900a39fb10f390584d4ba2c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 8 Mar 2022 13:32:34 -0800 Subject: [PATCH] cmd/go: for gccgo expect one fewer file in TestScript/list_swigcxx One of the files in CompileGoFiles is actually _cgo_import.go, but that file is only generated for gc, not for gccgo. Change-Id: I87bb55552e1409cc57da8f35a32b37ce4a3df60c Reviewed-on: https://go-review.googlesource.com/c/go/+/390895 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills --- src/cmd/go/testdata/script/list_swigcxx.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/testdata/script/list_swigcxx.txt b/src/cmd/go/testdata/script/list_swigcxx.txt index d4227a80e8..4220487a28 100644 --- a/src/cmd/go/testdata/script/list_swigcxx.txt +++ b/src/cmd/go/testdata/script/list_swigcxx.txt @@ -6,7 +6,7 @@ # CompiledGoFiles should contain 4 files: # a.go -# a.swigcxx.go +# _cgo_import.go [gc only] # _cgo_gotypes.go # a.cgo1.go # @@ -16,7 +16,8 @@ go list -f '{{.CompiledGoFiles}}' -compiled=true example/swig stdout a\.go -stdout -count=3 $GOCACHE +[gc] stdout -count=3 $GOCACHE +[gccgo] stdout -count=2 $GOCACHE -- go.mod -- module example