aboutsummaryrefslogtreecommitdiff
path: root/test/nilptr.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-24 10:30:39 +1100
committerRob Pike <r@golang.org>2012-02-24 10:30:39 +1100
commit19bab1dc78f1a1398d8e86bda1513b3671995ed7 (patch)
tree4da3e71a170e6bfe927d16b308907ca19fc15b7c /test/nilptr.go
parent5b30306fa81d2f95c152f6b8cd5e4b22a3befcbf (diff)
downloadgo-19bab1dc78f1a1398d8e86bda1513b3671995ed7.tar.gz
go-19bab1dc78f1a1398d8e86bda1513b3671995ed7.zip
test/[n-r]*.go: add documentation
The rename ones needed redoing. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/5698054
Diffstat (limited to 'test/nilptr.go')
-rw-r--r--test/nilptr.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/nilptr.go b/test/nilptr.go
index 1a489aae96..b784914e59 100644
--- a/test/nilptr.go
+++ b/test/nilptr.go
@@ -4,6 +4,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// Test that the implementation catches nil ptr indirection
+// in a large address space.
+
package main
import "unsafe"