From 20a33efdf32bf0aedcb0c9813ddc7572bb1ab8c7 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 18 Feb 2022 13:10:34 -0800 Subject: libgo: update to Go1.18rc1 release Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/386594 --- libgo/go/testing/fuzz.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libgo/go/testing/fuzz.go') diff --git a/libgo/go/testing/fuzz.go b/libgo/go/testing/fuzz.go index e1d7544..b5e1339 100644 --- a/libgo/go/testing/fuzz.go +++ b/libgo/go/testing/fuzz.go @@ -227,6 +227,9 @@ func (f *F) Fuzz(ff any) { if fnType.NumIn() < 2 || fnType.In(0) != reflect.TypeOf((*T)(nil)) { panic("testing: fuzz target must receive at least two arguments, where the first argument is a *T") } + if fnType.NumOut() != 0 { + panic("testing: fuzz target must not return a value") + } // Save the types of the function to compare against the corpus. var types []reflect.Type -- cgit v1.1