aboutsummaryrefslogtreecommitdiff
path: root/test/interface
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-04-21 08:20:29 -0400
committerRuss Cox <rsc@golang.org>2011-04-21 08:20:29 -0400
commitf10a7882c6d2876592bb73a27e7e595caad5c376 (patch)
treeef18b71f3bbf0f881f90e399d17314c9e15f439f /test/interface
parent5ff3336490bdbc8e838391978306e0e2510a81c7 (diff)
downloadgo-f10a7882c6d2876592bb73a27e7e595caad5c376.tar.gz
go-f10a7882c6d2876592bb73a27e7e595caad5c376.zip
gc: another pointer to interface message
R=ken2 CC=golang-dev https://golang.org/cl/4444056
Diffstat (limited to 'test/interface')
-rw-r--r--test/interface/pointer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/interface/pointer.go b/test/interface/pointer.go
index e628b558ea..076469c8de 100644
--- a/test/interface/pointer.go
+++ b/test/interface/pointer.go
@@ -33,4 +33,5 @@ func main() {
print("call addinst\n")
var x Inst = AddInst(new(Start)) // ERROR "pointer to interface"
print("return from addinst\n")
+ var x *Inst = new(Start) // ERROR "pointer to interface"
}