]> Cypherpunks.ru repositories - gostls13.git/commit
test: fix index.go to pass with recent index checks
authorIan Lance Taylor <iant@golang.org>
Tue, 6 Nov 2012 19:38:16 +0000 (11:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 6 Nov 2012 19:38:16 +0000 (11:38 -0800)
commit433b2f17eef632b55b9946e71e2754d67fda1765
tree8b905f46dd785c3d275279c5e179da17c4e4e367
parent2355409988305be158a55bfa5817ab2351fce825
test: fix index.go to pass with recent index checks

The compiler now gives an error for out of bounds constant
indexes for arrays, and for negative constant indexes for both
arrays and slices.

With this change the index.go test passes if CLs 6815085,
6815088, and 6812089 are committed.

R=golang-dev, remyoudompheng, rsc
CC=golang-dev
https://golang.org/cl/6810085
test/index.go