aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/gcflags_patterns.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/gcflags_patterns.txt')
-rw-r--r--src/cmd/go/testdata/script/gcflags_patterns.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/gcflags_patterns.txt b/src/cmd/go/testdata/script/gcflags_patterns.txt
index 5374493a43..f23cecefd3 100644
--- a/src/cmd/go/testdata/script/gcflags_patterns.txt
+++ b/src/cmd/go/testdata/script/gcflags_patterns.txt
@@ -63,6 +63,10 @@ stderr 'link.* -X=math.pi=3'
go build -n -ldflags=-X=math.pi=3
stderr 'link.* -X=math.pi=3'
+# cgo.a should not be a dependency of internally-linked go package
+go build -ldflags='-linkmode=external -linkmode=internal' -n prog.go
+! stderr 'packagefile .*runtime/cgo.a'
+
-- z1/z.go --
package z1
import _ "y"