# Issue 65406. The testdata directory in GOROOT/src
# shouldn't be treated as a standard package.

go list -f '{{.ImportPath}} {{.Dir}}' testdata
! stderr 'found package testdata in multiple modules'
stdout 'testdata '$WORK${/}'gopath'${/}'src'

-- go.mod --
module testdata
-- p.go --
package p