1 # go list should not report SWIG-generated C++ files in CompiledGoFiles.
2
3 [!exec:swig] skip
4 [!exec:g++] skip
5 [!cgo] skip
6
7 # CompiledGoFiles should contain 4 files:
8 # a.go
9 # a.swigcxx.go
10 # _cgo_gotypes.go
11 # a.cgo1.go
12 #
13 # These names we see here, other than a.go, will be from the build cache,
14 # so we just count them.
15
16 go list -f '{{.CompiledGoFiles}}' -compiled=true example/swig
17
18 stdout a\.go
19 stdout -count=3 $GOCACHE
20
21 -- go.mod --
22 module example
23
24 go 1.16
25
26 -- swig/a.go --
27 package swig
28
29 -- swig/a.swigcxx --
30
View as plain text