aboutsummaryrefslogtreecommitdiff
path: root/test/const1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-11 15:47:56 -0400
committerRuss Cox <rsc@golang.org>2010-09-11 15:47:56 -0400
commit0acb63769c900aad6e8d7d4380f248ef40829c0b (patch)
tree5712cd8090776c178d1dc85310dc8508afd7ac55 /test/const1.go
parentfa0c53da602ceff27378be1ca3d3f51519b31e03 (diff)
downloadgo-0acb63769c900aad6e8d7d4380f248ef40829c0b.tar.gz
go-0acb63769c900aad6e8d7d4380f248ef40829c0b.zip
gc: const nil bug
Fixes #1073. R=ken2 CC=golang-dev https://golang.org/cl/2169043
Diffstat (limited to 'test/const1.go')
-rw-r--r--test/const1.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/const1.go b/test/const1.go
index 427d61e59c..cf07055cfa 100644
--- a/test/const1.go
+++ b/test/const1.go
@@ -77,3 +77,5 @@ func main() {
f(String) // ERROR "convert|wrong type|cannot|incompatible"
f(Bool) // ERROR "convert|wrong type|cannot|incompatible"
}
+
+const ptr = nil // ERROR "const.*nil"