diff options
author | Russ Cox <rsc@golang.org> | 2014-07-16 19:27:10 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-07-16 19:27:10 -0400 |
commit | 8d504c4e97a0ff560208aa58b5d01e225412d821 (patch) | |
tree | 920741bc017ad114fe559f9dfff0c83d4f5e6078 /test/stress | |
parent | 26d0f75f2b1cbc58d7d8e4f835a59f311cffb77e (diff) | |
download | go-8d504c4e97a0ff560208aa58b5d01e225412d821.tar.gz go-8d504c4e97a0ff560208aa58b5d01e225412d821.zip |
cmd/gc: implement 'for range x {'
Fixes #6102.
LGTM=gri
R=ken, r, gri
CC=golang-codereviews
https://golang.org/cl/113120043
Diffstat (limited to 'test/stress')
-rw-r--r-- | test/stress/maps.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/stress/maps.go b/test/stress/maps.go index d022e19ade..fc5ab05a2c 100644 --- a/test/stress/maps.go +++ b/test/stress/maps.go @@ -97,6 +97,8 @@ func (m intMap) Len() int { return len(m) } func (m intMap) RangeAll() { for _ = range m { } + for range m { + } } func stressMaps() { |