blob: 5e1a8235a6909ee493a333de9cfe4f4a86bb8230 [file] [log] [blame]
// 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 (
fuzzing "go.fuchsia.dev/fuchsia/src/testing/fuzzing/go"
)
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")
}
}