1
0
mirror of https://github.com/golang/go synced 2024-09-29 13:34:30 -06:00

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 <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
Ian Lance Taylor 2022-03-08 13:32:34 -08:00
parent 0add0647d8
commit 20d333b6f4

View File

@ -6,7 +6,7 @@
# CompiledGoFiles should contain 4 files: # CompiledGoFiles should contain 4 files:
# a.go # a.go
# a.swigcxx.go # _cgo_import.go [gc only]
# _cgo_gotypes.go # _cgo_gotypes.go
# a.cgo1.go # a.cgo1.go
# #
@ -16,7 +16,8 @@
go list -f '{{.CompiledGoFiles}}' -compiled=true example/swig go list -f '{{.CompiledGoFiles}}' -compiled=true example/swig
stdout a\.go stdout a\.go
stdout -count=3 $GOCACHE [gc] stdout -count=3 $GOCACHE
[gccgo] stdout -count=2 $GOCACHE
-- go.mod -- -- go.mod --
module example module example