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