summaryrefslogtreecommitdiff
path: root/test/bounds.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-09-24 00:06:41 -0400
committerRuss Cox <rsc@golang.org>2012-09-24 00:06:41 -0400
commit0d82e698112464ea99bdd8cc2e695902b32e8e61 (patch)
tree4a25ad9c78fcba9b110edaabf3b3d947d809220d /test/bounds.go
parent3cd890dd5a8e5be33ce6f65ab7690ba0e1c235ef (diff)
downloadgo-git-0d82e698112464ea99bdd8cc2e695902b32e8e61.tar.gz
test: prepare for 64-bit ints
Minor tweaks to avoid assuming that int is always 32 bits. Update #2188. R=golang-dev, r CC=golang-dev https://golang.org/cl/6553062
Diffstat (limited to 'test/bounds.go')
-rw-r--r--test/bounds.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/bounds.go b/test/bounds.go
index 4a16f64d3d..50f7ad7419 100644
--- a/test/bounds.go
+++ b/test/bounds.go
@@ -247,10 +247,8 @@ func main() {
use(s[ui/1e6])
use(a1[ui/1e6])
use(a1k[ui/1e6])
- use(a100k[ui/1e6]) // ERROR "index bounds check elided"
use(p1[ui/1e6])
use(p1k[ui/1e6])
- use(p100k[ui/1e6]) // ERROR "index bounds check elided"
use(s[i/1e7])
use(a1[i/1e7])
@@ -262,12 +260,7 @@ func main() {
use(s[ui/1e7])
use(a1[ui/1e7])
- use(a1k[ui/1e7]) // ERROR "index bounds check elided"
- use(a100k[ui/1e7]) // ERROR "index bounds check elided"
use(p1[ui/1e7])
- use(p1k[ui/1e7]) // ERROR "index bounds check elided"
- use(p100k[ui/1e7]) // ERROR "index bounds check elided"
-
}
var sum int