aboutsummaryrefslogtreecommitdiff
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
commite08008e8c5e9205ea4937051fe662fe4d05df657 (patch)
tree772ccc77f35af3f3bab58389825ef83b0db8ffaa /test/index0.go
parentccef88c56f8b80e2e2c3aea9dd19be6527fb93f8 (diff)
downloadgo-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/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 0000000000..04a16198d2
--- /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