1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/cmd
Josh Bleecher Snyder a9266eef93 cmd/compile: simplify constant switch case sorting
This sort is now only reachable for constant clauses
for a non-interface switch expression value.

Refactor a bit so that the few tests that remain
are concise and easy to read.

Add a test that string length takes priority
over built-in string order.

Change-Id: Iedaa11ff77049d5ad1bf14f54cbb8c3411d589a7
Reviewed-on: https://go-review.googlesource.com/26767
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2016-08-23 05:28:50 +00:00
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api all: rename vendored golang.org/x/net packages to golang_org 2016-07-13 18:35:40 +00:00
asm cmd/internal/obj: convert Aconv to a stringer 2016-08-16 15:03:07 +00:00
cgo cmd/cgo: error, not panic, if not enough arguments to function 2016-06-21 04:32:04 +00:00
compile cmd/compile: simplify constant switch case sorting 2016-08-23 05:28:50 +00:00
cover cmd: fixed certain vet warnings 2016-05-12 15:58:30 +00:00
dist cmd/dist: build cmd/compile/internal/syntax 2016-08-18 21:33:53 +00:00
doc cmd/doc: ensure functions with unexported return values are shown 2016-08-02 03:24:48 +00:00
fix all: single space after period. 2016-03-02 00:13:47 +00:00
go cmd/yacc: remove go tool yacc 2016-08-18 16:15:23 +00:00
gofmt gofmt: remove unneeded call to os.Exit 2016-07-11 18:37:12 +00:00
internal cmd/internal/obj: update Bool2int to the form optimized by the compiler 2016-08-19 03:33:36 +00:00
link cmd/link: fix handling of cgo_dynamic_interpreter 2016-08-23 05:08:46 +00:00
nm all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
objdump cmd/objdump: skip TestDisasm* on s390x 2016-04-12 18:10:47 +00:00
pack all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
pprof cmd/pprof: don't use local symbolization for remote source 2016-06-25 00:36:40 +00:00
trace cmd/trace: split large traces into parts 2016-05-12 17:53:59 +00:00
vendor cmd/objdump: fix disassembly suffixes 2016-06-23 02:28:18 +00:00
vet cmd/vet: handle multiple arches in asm build directives 2016-08-22 15:43:16 +00:00