]> Cypherpunks repositories - gostls13.git/commit
test: test slice beyond len
authorIan Lance Taylor <iant@golang.org>
Fri, 3 Feb 2012 14:29:30 +0000 (06:29 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 3 Feb 2012 14:29:30 +0000 (06:29 -0800)
commit450c955bd973f153ba99c340022a424be5c75f73
treea4f40dde974411361b3a7dc7cac1cb8c8e55b1f4
parent8f9434b6c187b590c542a5d211f771d63a8c5bbf
test: test slice beyond len

When slicing a slice, the bounds may be > len as long as they
are <= cap.  Interestingly, gccgo got that wrong and still
passed the testsuite and all the library tests.

R=golang-dev, rsc, iant
CC=golang-dev
https://golang.org/cl/5622053
test/ken/array.go