blob: ea5886dae03a4570c777e1f040661c02782929c6 [file] [log] [blame]
Test of "undeclared" diagnostic in generated code.
-- go.mod --
module example.com
go 1.12
-- generated.go --
package generated
// Code generated by generator.go. DO NOT EDIT.
func _() {
var y int //@diag("y", re"declared (and|but) not used")
}
-- generator.go --
package generated
func _() {
var x int //@diag("x", re"declared (and|but) not used")
}