env GO111MODULE=on

# golang.org/issue/35759: 'go list -linkshared'
# panicked if invoked on a test-only package.

[!buildmode:shared] skip

go list -f '{{.ImportPath}}: {{.Target}} {{.Shlib}}' -linkshared .
stdout '^example.com:  $'

-- go.mod --
module example.com

go 1.14
-- x.go --
package x
