Text file src/cmd/go/testdata/script/list_linkshared.txt

     1  env GO111MODULE=on
     2  
     3  # golang.org/issue/35759: 'go list -linkshared'
     4  # panicked if invoked on a test-only package.
     5  
     6  [!buildmode:shared] skip
     7  
     8  go list -f '{{.ImportPath}}: {{.Target}} {{.Shlib}}' -linkshared .
     9  stdout '^example.com:  $'
    10  
    11  -- go.mod --
    12  module example.com
    13  
    14  go 1.14
    15  -- x.go --
    16  package x
    17  

View as plain text