aboutsummaryrefslogtreecommitdiff
path: root/test/stress
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-07-16 19:27:10 -0400
committerRuss Cox <rsc@golang.org>2014-07-16 19:27:10 -0400
commit8d504c4e97a0ff560208aa58b5d01e225412d821 (patch)
tree920741bc017ad114fe559f9dfff0c83d4f5e6078 /test/stress
parent26d0f75f2b1cbc58d7d8e4f835a59f311cffb77e (diff)
downloadgo-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.go2
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() {