[RS6000] function for linux64 SUBSUBTARGET_OVERRIDE_OPTIONS
[official-gcc.git] / libgo / go / html / fuzz.go
blobffa3e257f4052a1aff16f83e9d672ccb00d50181
1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build gofuzz
7 package html
9 import (
10 "fmt"
13 func Fuzz(data []byte) int {
14 v := string(data)
16 e := EscapeString(v)
17 u := UnescapeString(e)
18 if v != u {
19 fmt.Printf("v = %q\n", v)
20 fmt.Printf("e = %q\n", e)
21 fmt.Printf("u = %q\n", u)
22 panic("not equal")
25 // As per the documentation, this isn't always equal to v, so it makes
26 // no sense to check for equality. It can still be interesting to find
27 // panics in it though.
28 EscapeString(UnescapeString(v))
30 return 0