1
0
mirror of https://github.com/golang/go synced 2024-11-11 20:20:23 -07:00

cmd/compile: remove underscore from variable names in constant comparison test

The leading underscores aren't necessary.

Change-Id: I1d4c4b681e2a29ef40a0a6cf705c3b17a49c9f65
Reviewed-on: https://go-review.googlesource.com/40873
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Michael Munday 2017-04-17 14:01:07 -04:00
parent 273f449783
commit fc2d9cdf50
2 changed files with 925 additions and 925 deletions

File diff suppressed because it is too large Load Diff

View File

@ -160,12 +160,12 @@ func main() {
fmt.Fprintf(w, "// results show the expected result for the elements left of, equal to and right of the index.\n")
fmt.Fprintf(w, "type result struct{l, e, r bool}\n")
fmt.Fprintf(w, "var (\n")
fmt.Fprintf(w, " _eq = result{l: false, e: true, r: false}\n")
fmt.Fprintf(w, " _ne = result{l: true, e: false, r: true}\n")
fmt.Fprintf(w, " _lt = result{l: true, e: false, r: false}\n")
fmt.Fprintf(w, " _le = result{l: true, e: true, r: false}\n")
fmt.Fprintf(w, " _gt = result{l: false, e: false, r: true}\n")
fmt.Fprintf(w, " _ge = result{l: false, e: true, r: true}\n")
fmt.Fprintf(w, " eq = result{l: false, e: true, r: false}\n")
fmt.Fprintf(w, " ne = result{l: true, e: false, r: true}\n")
fmt.Fprintf(w, " lt = result{l: true, e: false, r: false}\n")
fmt.Fprintf(w, " le = result{l: true, e: true, r: false}\n")
fmt.Fprintf(w, " gt = result{l: false, e: false, r: true}\n")
fmt.Fprintf(w, " ge = result{l: false, e: true, r: true}\n")
fmt.Fprintf(w, ")\n")
operators := []struct{ op, name string }{
@ -207,7 +207,7 @@ func main() {
sig := sigString(r)
for _, op := range operators {
fmt.Fprintf(w, "{idx: %v,", i)
fmt.Fprintf(w, "exp: _%v,", op.name)
fmt.Fprintf(w, "exp: %v,", op.name)
fmt.Fprintf(w, "fn: %v_%v_%v},\n", op.name, sig, typ)
}
}