[!cgo] skip 'test verifies cgo pkg-config errors'
[!exec:pkg-config] skip 'test requires pkg-config tool'

! go list -export .
stderr '^go build example:\n# pkg-config (.*\n)+pkg-config: exit status \d+$'

-- go.mod --
module example
go 1.20
-- example.go --
package example

// #cgo pkg-config: libnot-a-valid-cgo-library
import "C"

package main() {}
