aboutsummaryrefslogtreecommitdiff
path: root/test/checkbce.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-05-17 15:28:14 -0700
committerIan Lance Taylor <iant@golang.org>2017-05-18 00:05:25 +0000
commitf700f89b0be0eda0cda20427fbdae4ff1cb7e6a8 (patch)
tree7ff9953289c9876e4e9bdc95622952248cf857f2 /test/checkbce.go
parentc34add780b65d4c18978a9e490a2db9e4ff22d3a (diff)
downloadgo-f700f89b0be0eda0cda20427fbdae4ff1cb7e6a8.tar.gz
go-f700f89b0be0eda0cda20427fbdae4ff1cb7e6a8.zip
test: add missing copyright header to checkbce.go
Change-Id: Iafeb8e033c876f482caa17cca414fe13b0fadb12 Reviewed-on: https://go-review.googlesource.com/43613 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
Diffstat (limited to 'test/checkbce.go')
-rw-r--r--test/checkbce.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/checkbce.go b/test/checkbce.go
index a4b0fe0d2a..430dcf9cbc 100644
--- a/test/checkbce.go
+++ b/test/checkbce.go
@@ -1,6 +1,13 @@
// +build amd64
// errorcheck -0 -d=ssa/check_bce/debug=3
+// Copyright 2016 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.
+
+// Test that the compiler does bounds check elimination as expected.
+// This avoids accidental regressions.
+
package main
func f0(a []int) {