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 | 5a4efa4e2730cd0417e36d714d14ac8bafd89575 (patch) | |
tree | 8ae049319683ea4ff71d9a4a48c847c56e5ca413 /test/index2.go | |
parent | 602f3b6323d1aac28250492e35668322479f3db8 (diff) | |
download | go-5a4efa4e2730cd0417e36d714d14ac8bafd89575.tar.gz |
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
http://codereview.appspot.com/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 000000000..a7107cc05 --- /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 |