# Tests issue #26242

go test testnorun
stdout 'testnorun\t\[no test files\]'

-- go.mod --
module testnorun

go 1.16
-- p.go --
package p

func init() {
	panic("go test must not link and run test binaries without tests")
}
