blob: 748d19de6d43ad83330e11a578a0db1cc89adee2 [file] [log] [blame]
This bug checks the fix for golang/go#66250. Package references should not
crash when one package file lacks a package name.
TODO(rfindley): the -ignore_extra_diags flag is only necessary because of
problems matching diagnostics in the broken file, likely due to poor parser
recovery.
-- flags --
-ignore_extra_diags
-- a.go --
package x //@refs("x", "x")
-- b.go --
func _() {
}