summaryrefslogtreecommitdiff
path: root/test/indirect1.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-23 18:47:26 +1100
committerRob Pike <r@golang.org>2012-02-23 18:47:26 +1100
commitd840779d66865cd18d2834e1719b1092588812ce (patch)
tree1bafec9c3ad11d2b5299b0846d37ec81ca896322 /test/indirect1.go
parentb718e7466f73ddfe225b0d4e4160130f58a7f4bd (diff)
downloadgo-d840779d66865cd18d2834e1719b1092588812ce.tar.gz
test: commentary for [h-m]*.go
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5674112
Diffstat (limited to 'test/indirect1.go')
-rw-r--r--test/indirect1.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/indirect1.go b/test/indirect1.go
index e49eeb065..51da4cc7c 100644
--- a/test/indirect1.go
+++ b/test/indirect1.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.
+// Verify that illegal uses of indirection are caught by the compiler.
+// Does not compile.
+
package main
var m0 map[string]int