go/src/cmd/compile/internal
Matthew Dempsky 16dd0624c2 cmd/compile/internal/gc: add comment and test for #15550
When switching to the new parser, I changed cmd/compile to handle iota
per an intuitive interpretation of how nested constant declarations
should work (which also matches go/types).

Note: if we end up deciding that the current spec wording is
intentional (i.e., confirming gccgo's current behavior), the test will
need to be updated to expect 4 instead of 1.

Updates #15550.

Change-Id: I441f5f13209f172b73ef75031f2a9daa5e985277
Reviewed-on: https://go-review.googlesource.com/36122
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-02-02 04:25:23 +00:00
..
amd64 [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00
arm [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00
arm64 [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00
gc cmd/compile/internal/gc: add comment and test for #15550 2017-02-02 04:25:23 +00:00
mips [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00
mips64 [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00
ppc64 [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00
s390x [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00
ssa cmd/compile: fix generic.rules 2017-02-01 20:27:12 +00:00
syntax all: merge dev.inline into master 2017-02-01 09:47:23 -05:00
test cmd/compile: Move divconst_test out of test/bench/go1 2016-04-29 16:20:18 +00:00
x86 [dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos 2016-12-08 21:36:52 +00:00