]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: for gccgo expect one fewer file in TestScript/list_swigcxx
authorIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2022 21:32:34 +0000 (13:32 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2022 23:18:30 +0000 (23:18 +0000)
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>
src/cmd/go/testdata/script/list_swigcxx.txt

index d4227a80e8e8834d3af5608c3ee94f7e731a490c..4220487a28642416e4b214d4810bf981affac3b7 100644 (file)
@@ -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