summaryrefslogtreecommitdiff
path: root/test/index0.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2012-11-07 12:33:54 -0800
committerIan Lance Taylor <iant@golang.org>2012-11-07 12:33:54 -0800
commit5a4efa4e2730cd0417e36d714d14ac8bafd89575 (patch)
tree8ae049319683ea4ff71d9a4a48c847c56e5ca413 /test/index0.go
parent602f3b6323d1aac28250492e35668322479f3db8 (diff)
downloadgo-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/index0.go')
-rw-r--r--test/index0.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/index0.go b/test/index0.go
new file mode 100644
index 000000000..04a16198d
--- /dev/null
+++ b/test/index0.go
@@ -0,0 +1,12 @@
+// runoutput ./index.go
+
+// Copyright 2012 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 compiled and run.
+
+package main
+
+const pass = 0