diff options
author | Ian Lance Taylor <iant@golang.org> | 2012-11-07 12:33:54 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2012-11-07 12:33:54 -0800 |
commit | e08008e8c5e9205ea4937051fe662fe4d05df657 (patch) | |
tree | 772ccc77f35af3f3bab58389825ef83b0db8ffaa /test/index2.go | |
parent | ccef88c56f8b80e2e2c3aea9dd19be6527fb93f8 (diff) | |
download | go-e08008e8c5e9205ea4937051fe662fe4d05df657.tar.gz go-e08008e8c5e9205ea4937051fe662fe4d05df657.zip |
test: run index test by default
Running this test via "bash run" uncovered three different
bugs (4344, 4348, 4353). We need to run it by default.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6832043
Diffstat (limited to 'test/index2.go')
-rw-r--r-- | test/index2.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/index2.go b/test/index2.go new file mode 100644 index 0000000000..a7107cc051 --- /dev/null +++ b/test/index2.go @@ -0,0 +1,12 @@ +// errorcheckoutput ./index.go + +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Generate test of index and slice bounds checks. +// The output is error checked. + +package main + +const pass = 2 |