diff --git a/main.go b/main.go index b0eb9bd..81423d7 100644 --- a/main.go +++ b/main.go @@ -140,16 +140,21 @@ func main() { var mainTmpl = template.Must(template.New("main").Parse(` // Code generated by go-118-fuzz-build; DO NOT EDIT. + // +build ignore + package main + import ( "testing" "unsafe" target {{printf "%q" .PkgPath}} "github.com/AdamKorcz/go-118-fuzz-build/utils" ) + // #include import "C" + //export LLVMFuzzerTestOneInput func LLVMFuzzerTestOneInput(data *C.char, size C.size_t) C.int { // TODO(mdempsky): Use unsafe.Slice once golang.org/issue/19367 is accepted.