aboutsummaryrefslogtreecommitdiff
path: root/content/go1.9
diff options
context:
space:
mode:
authorFrancesc Campoy Flores <campoy@golang.org>2017-08-24 10:49:01 -0700
committerFrancesc Campoy Flores <campoy@golang.org>2017-08-24 21:49:58 +0000
commitba64f2e0deaddbf01da1d04860a98fa9790ebaa2 (patch)
treef7e36791764a529bfb72756128b51532c79273a4 /content/go1.9
parent26f8026a8ef2dc2914c12e85b536e1ae469e89c0 (diff)
content: Go 1.9 is released
Change-Id: I386de65619857af423548316f134298dc1974da4 Reviewed-on: https://go-review.googlesource.com/58591 Reviewed-by: Chris Broadfoot <cbro@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'content/go1.9')
-rw-r--r--content/go1.9/helper_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/content/go1.9/helper_test.go b/content/go1.9/helper_test.go
new file mode 100644
index 0000000..bb17004
--- /dev/null
+++ b/content/go1.9/helper_test.go
@@ -0,0 +1,18 @@
+// Copyright 2017 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.
+
+// +build OMIT
+
+package p
+
+import "testing"
+
+func failure(t *testing.T) {
+ t.Helper() // This call silences this function in error reports.
+ t.Fatal("failure")
+}
+
+func Test(t *testing.T) {
+ failure(t)
+}