1[!fuzz] skip 2[!cgo] skip 3[short] skip 4env GOCACHE=$WORK/cache 5 6# Test that fuzzing works with cgo (issue 65169) 7 8go test -fuzz=. -fuzztime=1x 9stdout ok 10! stdout FAIL 11 12-- go.mod -- 13module example.com/p 14 15go 1.20 16-- c.go -- 17package p 18 19import "C" 20-- c_test.go -- 21package p 22 23import "testing" 24 25func Fuzz(f *testing.F) { 26 f.Add(0) 27 f.Fuzz(func(t *testing.T, x int) {}) 28}