blob: 8a3232c73d9bcaf4b2a93d260a1a2fa02447b651 [file] [log] [blame] [edit]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package basic
import (
"fuchsia.googlesource.com/testing/fuzzing/go/fuzzing"
)
func init() {
if fuzzing.Enabled {
println("Compiled with fuzzing instrumentation")
} else {
println("Compiled without fuzzing instrumentation")
}
}
func Fuzz(s []byte) {
if len(s) == 4 && s[0] == 'F' && s[1] == 'U' && s[2] == 'Z' && s[3] == 'Z' {
panic("fuzzed")
}
}